In MSDOS, when installing windows, what is the command to copy all folders including subdirs from the cd?

guyver01

Lifer
Sep 25, 2000
22,135
5
61
C:\>copy /?
Copies one or more files to another location.

COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/A | /B ] source [/A | /B]
[+ source [/A | /B] [+ ...]] [destination [/A | /B]]

source Specifies the file or files to be copied.
/A Indicates an ASCII text file.
/B Indicates a binary file.
/D Allow the destination file to be created decrypted
destination Specifies the directory and/or filename for the new file(s).
/V Verifies that new files are written correctly.
/N Uses short filename, if available, when copying a file with a
non-8dot3 name.
/Y Suppresses prompting to confirm you want to overwrite an
existing destination file.
/-Y Causes prompting to confirm you want to overwrite an
existing destination file.
/Z Copies networked files in restartable mode.

The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line. Default is
to prompt on overwrites unless COPY command is being executed from
within a batch script.

To append files, specify a single file for destination, but multiple files
for source (using wildcards or file1+file2+file3 format).
 

Linflas

Lifer
Jan 30, 2001
15,395
78
91
xcopy. Do an xcopy /? to get all the various switches and format.

Edit: Even better just read the above post. :Q
 

erikiksaz

Diamond Member
Nov 3, 1999
5,486
0
76
Those commands copy selected files and or files in a SINGLE folder, but not ALL folders with ALL subdirectories. How can i do that?
 

aceO07

Diamond Member
Nov 6, 2000
4,491
0
76
xcopy /e

Copies directories and subdirectories, including empty ones.
Same as /S /E. May be used to modify /T.
 

erikiksaz

Diamond Member
Nov 3, 1999
5,486
0
76
Originally posted by: Linflas
xcopy. Do an xcopy /? to get all the various switches and format.

Edit: Even better just read the above post. :Q

Xcopy won't work in dos for some reason, i've already tried that.
 

Linflas

Lifer
Jan 30, 2001
15,395
78
91
xcopy will copy and entire directory structure hidden files and all with the proper switches.
 

guyver01

Lifer
Sep 25, 2000
22,135
5
61
Originally posted by: erikiksaz
Those commands copy selected files and or files in a SINGLE folder, but not ALL folders with ALL subdirectories. How can i do that?

copy *.* ???

 

erikiksaz

Diamond Member
Nov 3, 1999
5,486
0
76
Is there any way you guys could send me a copy of xcopy that works under msdos? The version that i burned from my xp install doesn't work in msdos booted from the boot disk.
 

Linflas

Lifer
Jan 30, 2001
15,395
78
91
Ahh there is the problem, what version of DOS are you using? Easiest thing to do is go to Bootdisk.com and get the boot disk for that version. They normally have the xcopy command included on them.