Hi stanlb
There are inconsistencies with your folder and zip file names where in one line you are talking about a folder "Backup_11-08-2009_Ful" and then later talking about a renamed folder as "Full". Is it "Ful" or "Full", just so we know from the start. It looks like your folder names use "Full" and your ZIP files created from them use the word "Ful" in the file names, but I'm just guessing.
Perhaps you could explain the importance of creating separate ZIP files rather than doing an incremental backup of the same folder by adding new files to the same ZIP file each time the batch file is run.
I assume that the folders are created by some process like a batch file that finds the MM (month), DD (day) and YYYY (year) from the current %DATE% variable and names the folder accordingly.
Wouldn't it be better to have the time of creation written into the folder names so that a unique folder name is created, and therefore a unique zip file name would be created if you really need to keep doing this a number of times every day?
Without knowing what program does your zipping, and what commands you are using, I can only assume that it just takes the name of the folder for that day and zips it up using the folder's name for the zip file name. So you want to avoid overwriting or updating a zip file already created from that folder if a zip file of that name already exists in the destination folder?
I think you can see why we are both puzzled about what you are trying to do, so perhaps start again and explain how it all works so we are clear about it.
How are the source folders created, ie. manually created and named, or by a program like a batch file that uses the current date for a new folder name each day?
The purpose of zipping up the source folder is to create a backup of its contents?
Why would you need to do this several times a day instead of just once at the end of the day?
How many times is the batch file likely to be run within the same day?
What I'm asking is how many times the folder is likely to need renamed using an incrementing number, if this is really the only way you can do this task?
Bill
Main Topics
Browse All Topics





by: billprewPosted on 2009-11-07 at 15:01:31ID: 25768489
This is a little confusing. Is "Backup_11-08-2009_Ful.zip " the name of a directory also, or a name you want to rename the source directory to?
say .zip.
Is the source also on D:?
>>If the program is run again I need to rename the existing folder to "Backup_11-08-2009_Full_1"
>> D:\Backup_11-08-2009_Ful_1
All you want to do here is add .ZIP ?
~bp