Need some help w/ a Batch File and Backup

BigLance

Golden Member
Dec 20, 2000
1,206
2
0
Here is the deal, I am helping a friend by writing a short Batch file to backup some stuff on a Zip Disk.
He is running Windows 2000 and It doesn't seem to recognize some of the good old DOS Commands. I know Win2k doesn't contain the 'good old DOS' anymore but I figured these simple commands shoud still work ! Can someone help me make this work...

Here is what I had written.. its pretty simple really ...

c:\
format e: /q
e:
md mydocuments
md email
md favorites
copy C:\Documents and Settings\administrator\ e:\mydocuments
copy C:\Program Files\Netscape\Users\drg719\ e:\email
copy C:\Documents and Settings\administrator\ e:\favorites


I'm not sure what to do, anyone have any ideas ??
Thanks in advance !
 

ledzepp98

Golden Member
Oct 31, 2000
1,449
0
0
try this:

c:\
format e: /q
e:
md mydocuments
md email
md favorites
xcopy "C:\Documents and Settings\administrator" e:\mydocuments /y /d /e
xcopy "C:\Program Files\Netscape\Users\drg719" e:\email /y /d /e
xcopy "C:\Documents and Settings\administrator" e:\favorites /y /d /e

the /y will overwrite files without prompting, the /d will check the file dates and overwrite older files with newer ones, and the /e will copy folders and sub-folders