Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backup batch file

Status
Not open for further replies.

sirlance

MIS
Sep 17, 2002
36
US
I hope this is the correct fourm to be asking...

I need to create a batch file that does the following:
- Search a system for files that have been modified in the past 24hours
- Collect those files into a zip file (zipfile1)

It gets tricker.
- The same batch file must also check to see if a zipfile has already been created. If so, it appends to it OR it creates a second zip file with the newly modified files AND the other zip file.

To make it somewhat clearer, I need to scan a system, colloct files that have been modifed in the past 24hrs and save it as a zip file.
Then, when the batch file is run the next day, it collects all modified files within 24hrs then either appends it to the zip file created the day before OR creates a new zip file and adds the modified files and the day befores zip file.

This is actually a UNIX function from what I was told, but I'm using all Windows systems (2000).

Thanks
 
In the old days of command line I used to archive files modified in sertain amount of time. It was in command line switches of ARJ, so you can look at command line of PKZIP.

As an alternative - if you know how it is done at Unix you can install set of Unix-like utilities.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top