DOS command to copy whole folders, not just files?

Felecha

Golden Member
Sep 24, 2000
1,434
0
0
isn't there a DOS command that will copy an entire folder and all its subfolders and files to another partition?

I want to copy my Favorites folder as a backup measure. Last time I restored things I overlooked to back up my address books and bookmarks. I can write a set of COPY commands in a batch file that will copy the files from each subfolder into a subfolder in the target, but I thought there was a command, with a /s switch, that would simply copy the whole Favorites folder over to the target.

if there's a single command I won't have to update the batch file every time I add a new folder to my Favorites.
 

Molloch

Member
Jun 27, 2001
35
0
0
You should check out XCOPY. I don't remember the syntax, but I believe that command had much greater functionality (ie could handle sub-directories). That's been around since Dos 6 I think, and appears to still be present in XP, so I assume it's still there in 95/98/ME etc.

Hope this helps.