nartac Posted March 20, 2004 Share Posted March 20, 2004 Hello friends,the following is what I got in my runonceex.cmd but keep getting an error relating to COPY command. Any suggestions are appreciated.REG ADD %KEY%\080 /VE /D "Photoshop CS" /fREG ADD %KEY%\080 /V 1 /D "%CDROM%\applications\Photoshop8\Setup.exe -s -f1"%systemdrive%\extras\Applications\Photoshop8\setup.iss"" /fREG ADD %KEY%\080 /V 2 /D "COPY /Y %CDROM%\Applications\PSCrack\Tw10122.dat \"%systemdrive%\Program Files\Adobe\Photoshop CS\"" /fREG ADD %KEY%\080 /V 3 /D "COPY /Y %CDROM%\Applications\PSCrack\AdobeLM.dll \"%systemdrive%\Program Files\Adobe\Photoshop CS\"" /f Link to comment Share on other sites More sharing options...
Aaron Posted March 20, 2004 Share Posted March 20, 2004 http://unattended.msfn.org/xp/runonceex.htmLook under "Applications that use Quotations" for the -f1 switch. But since you don't have any spaces in the paths, adding quotations isn't necessary.You'll also need to include cmd.exe /c before the copy command for it to work, otherwise use .cmd batch files. Link to comment Share on other sites More sharing options...
nartac Posted March 20, 2004 Author Share Posted March 20, 2004 Thank you AaronXP for the prompt reply. Being new to all these commands, can I possibly ask you to give me an example of how to incorporate this cmd.exe /c in my script? Link to comment Share on other sites More sharing options...
Aaron Posted March 20, 2004 Share Posted March 20, 2004 Example:REG ADD %KEY%\080 /V 3 /D "cmd /c copy /Y %CDROM%\somefile.txt %systemdrive%\somefolder\" /f Link to comment Share on other sites More sharing options...
nartac Posted March 20, 2004 Author Share Posted March 20, 2004 AaronXP, you're a guru of all gurus. Thanks a bunch. 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