Consulting

Results 1 to 3 of 3

Thread: Add File/files to Zip folder using vbs

  1. #1

    Add File/files to Zip folder using vbs

    Hey folks!

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

  2. #2
    BoardCoder
    Licensed Coder
    VBAX Expert mark007's Avatar
    Joined
    May 2004
    Location
    Leeds, UK
    Posts
    622
    Location
    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...
    "Computers are useless. They can only give you answers." - Pablo Picasso
    Mark Rowlinson FIA | The Code Net

  3. #3
    Thanks for the suggestion.

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

    [VBA]wsh.run "wzzip test.zip *.xls"[/VBA]

    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 ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •