Posted 24 February 2007 - 02:33 PM
If you want to copy over a directory along with all of its subdirectories, the xcopy command is what you want. Say you have C:\Backup and it has folders within it like \pictures, \music, etc., and you want to copy all of its contents over to D:\ Through DOS you use XCOPY [source] [destination] [and desired switch options] In this case we want the subdirectories copied along with the base folder, so we would use the /S switch, (and possibly the /E switch if you want to also copy any empty subdirectories). So in this case you would first make another Backup folder in D:\. So: MKDIR D:\Backup
Then the command to copy would be: XCOPY C:\Backup D:\Backup /S
For more on XCOPY go to the command prompt and type in XCOPY /?