VBScript to Zip Up files with option to delete them
Posted on 2011-03-07
I need help coming up with a visual basic script. I have looked and found several close items but nothing exact and I do not know enough about vbs to write or adjust a script.
I have a folder that will get a lot of xml, pdf and txt files. I want to schedule a task to run this script once a month.
I would like the script to have a variable amount of days old to allow it to zip up any files over the variables number of days old.
I want to have a variable to turn on and off deleting the files once they have been zipped.
I would also like the script to have a variable of the file location so that I can use this on more than one server.
Finally I would also like the zip file created to be named the month that it runs.
It will run on server 2003 or newer so I do not want to use winzip or winrar.
I hope that my explanation is ok.