Link to home
Start Free TrialLog in
Avatar of brasiman
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!!
Avatar of Temody
Temody
Flag of Egypt image

What about backup application can do that automatically, schedule, incremental and safety
Acronis or paragon
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brasiman
brasiman

ASKER

Thank you!