Copy folders from one drive to another and zip the copied folders
Posted on 2015-01-12
I have two folders on the C drive. We can call them folder A and B. Here's what i'd like to do:
1. I would like to copy those two folders to the G drive in a folder called Roll. When the folders are copied to the Roll folder on the G drive, I would like those two folders (A and B) to be zipped so it doesn't take alot of space on my G drive.
2. If possible, I would also for the script to somehow only keep the newest 7 copies. I want to run this every day but don't want to keep deleting the zipped folders older than 7 days.
3. When the folders are copied to the Roll folder on the G drive, I would like the zipped folder to be named the date the script was run (timestamp).
Does that make sense? I hope that does. :) Thank you!!