Monitor Directory for new files and zip/copy to new dir?

January 24, 2012 at 09:11:36
Specs: Windows 7
I just started looking around on this site and I've found some great stuff so far but haven't yet found something that meets my needs but thought I'd post this while I'm searching.

I have a system that runs for 2-3 hours and saves 10-15 large .xls files into a directory. I need to zip each file up and move it to a network directory for backup. I did a quick batch file to use 7-zip to zip them up individually once all files have been saved and I then manually copy them to the network directory. I'd really prefer to have something that running in the background that monitors my output directory and then handles the zipping and copying of the zip file in real time.

Net, I need to write a command line batch file to do the following:

-Monitor a directory for new files
-Zip each new file that appears in the directory
-Copy the .zip file to a separate network directory

Is this easy to do?

See More: Monitor Directory for new files and zip/copy to new dir?

Report •

January 25, 2012 at 17:27:26
I just wrote a batch that does something similar to what you want. The link is below, and it's the last batch I posted to the thread. Maybe you can try it and modify it to your liking. Let me know if you need help.

Report •
Related Solutions

Ask Question