Click to See Complete Forum and Search --> : copy command questions


jakkwb
March 6th, 2002, 10:55 AM
Greetings,
Is there a command in DOS to copy a single directory and all directories and files contained in it?

I am having to copy drivers off a CD in DOS because the system will only boot in safe mode, where I cannot access the CD.

Thank you,

Al

Wyckyd1
March 6th, 2002, 11:06 AM
Use XCOPY with /s switch.

At prompt XCOPY /? will give you syntax/options. (You may be aware of that but figured it wouldn't hurt to include :) ).

Gabriel
March 6th, 2002, 01:19 PM
Though Wyckyd1 is right there is a slight error.
Xcopy /s copies directories and subdirectories as well.
-BUT-
It does not copy EMPTY Directory which some appliation might require them.

For this you should use the
XCOPY /E
Which does the same as /s but copies empty subdir as well.

Good Luck
Gabriel