Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Am building a computer for grandparents and
I need to copy a directory with ALL the subfolders. What command can I use with "copy"?THANKS in advance!! :>)

You'll need to use xcopy, as follows:
xcopy/s source [destination]
to copy all files in all subdirectories, but hidden files and hidden directories will not be copied.
Xcopy will also allow you to include empty subdirectories, or to exclude certain files, based on file attributes, as well as to keep track of which files have been copied so far. If you're using DOS 6.xx or higher, type help xcopy to see the details. If you are copying from one disk to another, be sure there is enough room on the destination disk to hold all of those files (especially if it's a floppy).

Minor point!
You get Folders in Windows
BUT Directories in DOS
i.e. DIR to list 'Directory'
Not that it matters much!

a program called xxcopy16.exe is a bit easier to use, in my opinion, than xcopy
http://www.xxcopy.com/xxcopy/

Don't try to xcopy Windows 95 or later because there are too many hidden files AND long filenames will be truncated in DOS.
Other than that "XCOPY C: D: /S" for a drive.
or make the directory on the target drive first (ie MD DOS) Then it is XCOPY C:\DOS D:\DOS /S for a directory. The /S copies any subdirectories. (\DOS\TEMP for example)

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |