Batch File Help Need: Zip all files before the current date.
Posted: 18 Feb 2009 10:43
I'm new to the forum and I need help trying to create a batch file to do the following:
I have a bunch of log files that I need to zip and I would like to automate the process.
The filenames are in the format LOGMMDDYYYY.csv - where the MMDDYYYY portion is a particular date that the log file was created. The problem is that the log for the current day will be locked because it is in use by the program; therefore, I would like to create a batch file that would take all the logs before the current date and zip them and then move them to another folder.
Is this possible to do with a batch file?
Thanks for any help you may be able to give.
I have a bunch of log files that I need to zip and I would like to automate the process.
The filenames are in the format LOGMMDDYYYY.csv - where the MMDDYYYY portion is a particular date that the log file was created. The problem is that the log for the current day will be locked because it is in use by the program; therefore, I would like to create a batch file that would take all the logs before the current date and zip them and then move them to another folder.
Is this possible to do with a batch file?
Thanks for any help you may be able to give.