DOS copy /S not available in XP

  • Thread starter Thread starter Carl
  • Start date Start date
C

Carl

What is the command to copy sub directories in XP DOS?
Old DOS use to be /s for sub directories
Example copy *.* /s/e/v d: = Copy subdirectories
everything verify to d drive

I want to run a bat file and do a DOS copy of all files
and all sub directories in a folder.

XP does not list the /S in help.
Does anyone know how to do this in XP?
Thanks
Carl
 
What is the command to copy sub directories in XP DOS?
Old DOS use to be /s for sub directories
Example copy *.* /s/e/v d: = Copy subdirectories
everything verify to d drive

I want to run a bat file and do a DOS copy of all files
and all sub directories in a folder.

XP does not list the /S in help.
Does anyone know how to do this in XP?
Thanks
Carl


I do it all the time, but with XCOPY /s

You should be in the 32-bit shell (cmd.exe) not the 16-bit
shell (command.exe)
 
See the xcopy program. Run xcopy /? or search Windows XP "Help" for
"xcopy" for help on the command prompts.

You also may like to see robocopy, available for free download from
Micosoft's web site as part of the Microsoft Windows Resource Kit. Full
documentation for how to use it included with the download.
 
Try XCOPY instead of COPY.

XCOPY *.* path\directory /S /V /R /H

path\directory is the full path to the directory where you want the files to
go. Relative patches may also be used. If the directory des not exist,
XCOPY will ask whether you want it to create a directory or a file. Always
say directory.

/S is for all subdirectories and files therein
/V is to verify copied file matches original
/R is to copy read-only files (if any), else XCOPY stops on forst read-only
file
/H is to copy hidden files (if any), else skipped
 
Xcopy
http://www.microsoft.com/technet/tr...chNet/prodtechnol/winxppro/proddocs/xcopy.asp

Command-line reference A-Z
http://www.microsoft.com/technet/tr...hNet/prodtechnol/winxppro/proddocs/ntcmds.asp

New ways to do familiar tasks
http://www.microsoft.com/technet/tr...t/prodtechnol/winxppro/proddocs/dos_diffs.asp

--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User

----------------------------------------------------------------------------------


| What is the command to copy sub directories in XP DOS?
| Old DOS use to be /s for sub directories
| Example copy *.* /s/e/v d: = Copy subdirectories
| everything verify to d drive
|
| I want to run a bat file and do a DOS copy of all files
| and all sub directories in a folder.
|
| XP does not list the /S in help.
| Does anyone know how to do this in XP?
| Thanks
| Carl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

copying in windows 8
XP DOS Boot Disk With File System 1
Windows XP Commands 3
Can XP copy Vista files 1
huge archives in Windows directory 1
DOS? 7
Print Directory in XP 5
How to copy a lot of files? 12

Back
Top