Jump to content

Problem copying files from CD to Hard Drive


Recommended Posts

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


try this

cmd2[pn]=['CMD /k COPY \\“%CDROM%\\Install\\fstlock\\basic.rst" \\“%programfiles%\\1st Security Agent\\basic.rst" /Y']

if not then this

cmd2[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

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

  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...