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

Score
0
Vote Up
January 24, 2012 at 09:11:36 Pacific
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?


Reply ↓  Report •


#1
Vote Down
Score
0
Vote Up
January 25, 2012 at 17:27:26 Pacific

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.

http://www.computing.net/answers/pr...


Reply ↓  Report •
Reply to Message Icon Start New Discussion
Related Posts

« [Solved] I want xcopy to both copy... [Solved] Batch file text to speech... »