mba5454 Posted July 28, 2005 Share Posted July 28, 2005 prog[pn]=['1st Security Agent']uid[pn]=['stegan3']cmd1[pn]=['%CDROM%\\Install\\fstlock\\setup.exe /VERYSILENT /NORESTART "']cmd2[pn]=['CMD /k COPY \\“%CDROM%\\Install\\fstlock\\basic.rst" \\“%programfiles%\\1st Security Agent\\" /Y']cat[pn]=['Security']pn++At the WPI execution it gives me an error of syntax, how can I fix this problem? Link to comment Share on other sites More sharing options...
almulder Posted July 28, 2005 Share Posted July 28, 2005 try thiscmd2[pn]=['CMD /k COPY \\“%CDROM%\\Install\\fstlock\\basic.rst" \\“%programfiles%\\1st Security Agent\\basic.rst" /Y']if not then thiscmd2[pn]=['CMD /k COPY “%CDROM%\\Install\\fstlock\\basic.rst" “%programfiles%\\1st Security Agent\\basic.rst" /Y']Also make sure the Directory is there. Must macth excact. Upper and lower case. Link to comment Share on other sites More sharing options...
oioldman Posted July 28, 2005 Share Posted July 28, 2005 i use this code that works,cmd2[pn]=['%windir%\system32\xcopy /E /V /Q "<from path>" "<to path>"']Also, you'll need to use " if path has spaces in it.With ref to xcopy;/E - Copies directories and subdirectories, including empty ones.Same as /S /E. May be used to modify /T./V - Verifies each new file./Q - Does not display file names while copying.if you want to use other switches, open a command prompt and type xcopy /?Hope it helps Link to comment Share on other sites More sharing options...
mba5454 Posted August 12, 2005 Author Share Posted August 12, 2005 Problem Solved, thanks everyone 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