swbchen Posted June 14, 2005 Posted June 14, 2005 (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\*.*/show to write this command in config ????2.cmd/c copy %cdrom%\install\aaa\*.* c:\program files\bbb\*.*/sThis doesn't work !!!!Anyone help me ? Thank you.! Edited June 14, 2005 by swbchen
oioldman Posted June 14, 2005 Posted June 14, 2005 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
swbchen Posted June 14, 2005 Author Posted June 14, 2005 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.
swbchen Posted June 15, 2005 Author Posted June 15, 2005 (edited) %windir%\system32\xcopy /E /V /Q "%cdrom%\install\_antivirus\Kaspersky\reg\*.*" " c:\program files\aaa\*.*"this one work ! thank youpath must be with " " ! Edited June 15, 2005 by swbchen
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