MCT Posted November 18, 2005 Share Posted November 18, 2005 (edited) i need to get this to workREM Copying Foobar2000 Config FileREG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /V foobar /d "cmd /c xcopy %cdrom%\Install\Apps\Extras\Foobar2000.cfg "%appdata%\Foobar2000\" /Y " /fi cant get it to work withREM Copying Foobar2000 Config FileREG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /V foobar /d "cmd /c xcopy %cdrom%\Install\Apps\Extras\Foobar2000.cfg %appdata%\Foobar2000\" /Y " /fbut %appdata% needs to be in quotes cuz it contains spaces Edited November 18, 2005 by MCT Link to comment Share on other sites More sharing options...
MHz Posted November 18, 2005 Share Posted November 18, 2005 Perhaps like this:REM Copying Foobar2000 Config FileREG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /V foobar /d "cmd /c copy /y \"%cdrom%\Install\Apps\Extras\Foobar2000.cfg\" \"%appdata%\Foobar2000\"" /felse you would need to wrap the whole cmd in another pair of double quotes with backslashes. Your only copying 1 file so just use Copy to do it. Link to comment Share on other sites More sharing options...
MCT Posted November 26, 2005 Author Share Posted November 26, 2005 forgot 2 say thanks MHz i have another question along same lines cant get this 2 work it adds c:\Program files\ccleaner\ccleaner.exe /autobut not in quotescode i have is:REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /V ccleaner /d ""%programfiles%\ccleaner\ccleaner.exe" /auto" /f Link to comment Share on other sites More sharing options...
MHz Posted November 26, 2005 Share Posted November 26, 2005 This works fine. You do not see it running but it cleans.REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /V ccleaner /d "\"%programfiles%\ccleaner\ccleaner.exe\" /auto" /fGeneral rule:For each double quote within surrounding double quotes, add a backslash in front of them. Link to comment Share on other sites More sharing options...
MCT Posted November 26, 2005 Author Share Posted November 26, 2005 thanks again man Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now