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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Compression?

Status
Not open for further replies.

jasonp45

Programmer
Joined
Aug 23, 2001
Messages
212
Location
US
I want to programmatically compress files to prep them for FTP; I'm using VB6. I've noticed that Windows ME has built-in zip-compatible file compression, so I'm assuming there's some DLL I can reference that will allow me to do this.

I can compress right now with command-line WinZip, but I'm going to be distributing a program for intra-office use and a lot of the users don't have WinZip. Does anyone know of any Microsoft/Windows/VB object that will allow me to compress a file???

Thanks!
 
You are not very clear. Will you be distributing a compressed executable or datafiles? Will users read the datafiles with your software? If yes you can include your own decompression software. (the best compression rate I ever got for free was a program called bzip (orig Linux, but also for Windows). What is the minimum OS your users have? Win98? No built-in Zip there!
If you want to compress the executable, try making it into a MSI file.
 
Rather than WinZip, you could always just include the shareware version of pkzip with your program. It runs as a stand-alone DOS executable, so there are no compatibility worries and no need for any installing. Just copy it to the hard drive and start zipping things. Yeah, I know it's not the nicest way to do it, but it's probably the fastest, cheapest, and easiest.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top