PDA

View Full Version : Add File/files to Zip folder using vbs



BexleyManor
11-24-2005, 07:08 AM
Hey folks!

I was wondering how I would go about making a vbs script add file or files to a winzip folder??

mark007
11-27-2005, 07:11 PM
If you know the command line switches your best bet is to use the shell function to call winzip. Failing that there are bound to be other 3rd party libraries you could use and there's probably a windows API for XP too...

BexleyManor
11-28-2005, 03:37 PM
:friends: Thanks for the suggestion.

It got me thinking and I remembered the winzip command line add-on. I installed it then did a simple..

wsh.run "wzzip test.zip *.xls"

I guess this relies on the add-on being installed on the machine I'm working at so I'll have a crack at the shell suggestion.

**I've added a PDF of all the add-on command switches on the off chance anybody might find it useful ?