Batch File for W2K

Author
Discussion

welsh blackbird

Original Poster:

692 posts

257 months

Monday 31st July 2006
quotequote all
I hope somebody can help me with this!

I need to copy all of the data on drive D to a folder on drive C each day. It needs to maintain the directory structure and automatically overwrite the existing files in the target directory.

Is it possible to do this with a batch file that I can run before I go home so that it does it without any user intervention?

Any assistance much appreciated!!

slapmatt

1,132 posts

235 months

Monday 31st July 2006
quotequote all
Yes. Writing batch files is easy, use Google and you'll find a million tutorials. You can then run the batch file using Scheduled Tasks in Windows, at a particular time each day so that no user input is required

TheExcession

11,669 posts

263 months

Monday 31st July 2006
quotequote all
You could use xcopy, though you might consider using winzip. i.e. zip all the contents of drive D into a zip file held on drive C. Then use winzip to keep the archive upto date, this will save you lots of space on your C drive.

Personally I'd go with the Zip option but xcopy might be enough for you.

xcopy here: www.ss64.com/nt/xcopy.html