Discussion Locked

dos

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
I'm running a winn4.0 platform.I have a folder on a clients computer that I need to backup everyday.He does not leave his computer on overnite, it's on only during the day.I would like to write a batch file that would do a copy everyday at the same time(5 days a week).I have never written a batch file before.Any help would be appreciated.Is there a website that would give some pointers on this.Thank's in advance...

5 replies

by mjervis

I have the same setup for some of my people.

1. I shared thier folder using the $ (hidden method) then mapped those shares to thier workstations.

2. I wrote a small batch file (1 line)
copy c:\directory_to_copy\*.* g:\

g:\ = the mapped share drive

I saved this as copy.bat in a folder called batches. From there I put it in the scheduler as a scheduled task to run at a specified time. This works in 98 nt and 2000 ME if you need this to work in 95 you need to get 95 plus.

Hope this helps you.

by christine_waterhouse

I get this name wrong alot but it is real common, KiXtart is a free login script program that works well. It comes in the NT resource kit, or you can find it linked on the microsoft website OR you can find it on the WWW.

you might be able to do a login script - work in notepad - use the xcopy command - look up the xcopy command on a Dos website for a full list of switches... I don't have them all memorized and you might need one that I don't mention - so check it out. If you run it as a login script when he logs in every AM you don't have to share his drive or anything... just make a little file with notepad that says something like:

net use t:\\servername\backupfolder
xcopy c:\VeryImportantFolder t:\filename /d /r

and every AM the file will be backed up... of course that's assuming that the user does not need it backed up more often....

pretty much anything you write in a login script can be put into a batch file.

There are some batch file examples on the MicrosoftTechnet website - just do a search on batch files and some examples will appear.

good luck

This discussion is closed to new replies.