Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programmatically Creating a .ZIP File

Status
Not open for further replies.

Creepers

Programmer
Nov 11, 2002
116
US
How can I programmatically create and append files to a compression file, specifically a .zip file?
 
You might want to have a quick look at my code in thread222-1302498 for around about the simplest way of doing this
 
Yeah, I am also using the "Shell.Application" method. Hoping to find a different approach.

Thanks!
 
If you don't want to use the Scriptable Shell Objects or equivalent API calls (and they may fail in a Windows service running as a non-interactive user, etc.) you're pretty much going to need an ActiveX library.

There are standard DLLs too, but the API may be a bit more clunky to code against.

As a last resort you could probably shell something like an InfoZip command line tool.

If you go the ActiveX route that XStandard library mentioned in the other thread isn't bad, and you may find others too. Most cost money but some of them are freebies.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top