brasiman
asked on
Batch script to copy, zip, move then delete
I have a bunch of files in C:\Temp. They range from .doc, .xls, .pdf, etc. Every day, I am manually moving (cut) those to C:\Backup. After I cut the files from C:\Temp, I create a new folder with today's date in C:\Backup, then paste those files from C:\Temp into the newly created folder in C:\Backup. I would like to automate this if I can. I have been trying to figure out a batch script that will do this:
1. Zip all the files in C:\Temp
2. Create a new folder on C:\Backup with today's date
3. Paste that zipped folder in C:\Backup in that new folder
4. Delete the files in the C:\Temp folder AFTER the zipped folder has been moved to C:\Backup
Is there a way to create a batch file to do this? If its multiple scripts, thats fine too. I have 7z on the server if that helps. Thanks!!
1. Zip all the files in C:\Temp
2. Create a new folder on C:\Backup with today's date
3. Paste that zipped folder in C:\Backup in that new folder
4. Delete the files in the C:\Temp folder AFTER the zipped folder has been moved to C:\Backup
Is there a way to create a batch file to do this? If its multiple scripts, thats fine too. I have 7z on the server if that helps. Thanks!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you!
Acronis or paragon