mba5454 Posted July 28, 2005 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?
almulder Posted July 28, 2005 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.
oioldman Posted July 28, 2005 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
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