I need to set up a job to monitor some folder and zip the content. Can anyone point me to a script to do this. I'm new to scripting and i'm not really sure where to start.
As part of our sql backup process, I would like to set up a job in sql to move all weekly backups of our database to another location. This I've alreasdy achieved with vbscript. Now i would like to set up another job to zip all the files in the new location, let's say every month, into one zip file. I would like to use vbscript if possible. According to Valvola this is not possible, so i'm now looking at other alternatives.
If what you want to do is simply zip all files from a certain location into ONE zip file, it can be easily done with batch file. Of course, you can do it with vbs as well. Below is the code to do it in vbs. Change the source directory and the destination zip file to whatever you desired and make sure the directory path ends with "\*" to include all files in that directory.
pkzipc is a command line tool for manipulating zip files, much like the old pkzip/pkunzip program, but with support for 32bit environment. It can be downloaded from various download sites; just do a search on google.
The command line added for WinZip uses different syntax than pkzipc. I don't have it installed so I can't tell you exactly what option to use. You can either research on the usage or paste the usage here so I can try to figure it out what you need.