Jump to content

Recommended Posts

Posted (edited)

Hi ! Guys !

I want to make a copy of a directory (inclding all files in it) from cd to Harddisk by WPI .

How to config the command for this "copy"???

i.e.

1.I want to make this copy from cd to c:\program files\...

xcopy C:\xp-cd\root\install\_antivirus\Kaspersky\50227\reg\*.* C:\Program files\Kaspersky Lab\Kaspersky Anti-Virus Personal\*.*/s

how to write this command in config ????

2.

cmd/c copy %cdrom%\install\aaa\*.* c:\program files\bbb\*.*/s

This doesn't work !!!!

Anyone help me ? Thank you.!

Edited by swbchen

Posted

i have code i use at home that works, but you need to use something akin to this

%windir%\system32\xcopy /E /V /Q <from path> <to path>

/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

Posted

it works for this path:

%windir%\system32\xcopy /E /V /Q %cdrom%\install\_antivirus\Kaspersky\reg\*.* c:\aaa\*.*

but not work for this paths

%windir%\system32\xcopy /E /V /Q %cdrom%\install\_antivirus\Kaspersky\reg\*.* c:\program files\aaa\*.*

any help ???

thank you.

Posted (edited)

%windir%\system32\xcopy /E /V /Q "%cdrom%\install\_antivirus\Kaspersky\reg\*.*" " c:\program files\aaa\*.*"

this one work ! thank you

path must be with " " !

Edited by swbchen

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...