Hi,
I'm new to vbscript, and was wondering how best to tackle this situation:
I have 2 directories called archive1 and archive2.
I have a directory called backups
Within backups, I have 4 separate subdirectories. Within these 4 subdirs, I have a bunch of backup files. I would like to move all the backup files to the archive folder after 1 day. The next day, I'd like to move (not copy) the contents of archive1 to archive 2. So in essence, this would be a system that moves the backup files and keeps them for 2 days, at which time, they are overwritten after 2 days by the next set, and so on. What I'm struggling with is how to write the script that drills down deep into each of the subdirectories under backups, looks for the backup files, and moves them to the archive, while keeping the entire original backup directory structure intact.
Thanks for any ideas and suggestions.
T
I'm new to vbscript, and was wondering how best to tackle this situation:
I have 2 directories called archive1 and archive2.
I have a directory called backups
Within backups, I have 4 separate subdirectories. Within these 4 subdirs, I have a bunch of backup files. I would like to move all the backup files to the archive folder after 1 day. The next day, I'd like to move (not copy) the contents of archive1 to archive 2. So in essence, this would be a system that moves the backup files and keeps them for 2 days, at which time, they are overwritten after 2 days by the next set, and so on. What I'm struggling with is how to write the script that drills down deep into each of the subdirectories under backups, looks for the backup files, and moves them to the archive, while keeping the entire original backup directory structure intact.
Thanks for any ideas and suggestions.
T