MCT Posted November 18, 2005 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
MHz Posted November 18, 2005 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.
MCT Posted November 26, 2005 Author 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
MHz Posted November 26, 2005 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.
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