|
-
Jul 28th, 2011, 04:35 AM
#1
Thread Starter
Addicted Member
Compress files in vb.net?
I'm just wondering if it is possible to create an vb.net application to compress files, without using a 3rd party app.
If yes, can you please point me in the right direction, give me some tips, tutorials or sample code?
I will appreciate any help, thanks
-
Jul 28th, 2011, 04:51 AM
#2
Re: Compress files in vb.net?
Hi,
Compressing and Decompressing files as very complex.
Perhaps you can find some good information, here.
-
Jul 28th, 2011, 05:08 AM
#3
Thread Starter
Addicted Member
Re: Compress files in vb.net?
 Originally Posted by sparrow1
Hi,
Compressing and Decompressing files as very complex.
Perhaps you can find some good information, here.
Hi sparrow1.
I tested that code before. It seems to make the file bigger, rather than to compress it.
A .docx file went from 147kb to 179kb after compression with application.
Thanks a lot for the link though
-
Jul 28th, 2011, 05:34 AM
#4
Re: Compress files in vb.net?
I use the #ZipLib library from ic#code ... http://sharpdevelop.net/OpenSource/SharpZipLib/ when I need to compress/decompress files.
-tg
-
Aug 1st, 2011, 01:52 PM
#5
New Member
Re: Compress files in vb.net?
I was trying to solve this issue today. I gave up on a pure-VB.net solution. Instead I just downloaded the command line version of 7zip and use
Code:
Process.start("7za a -tzip archive.zip Folder", , True)
to compress my folder(and wait for it to finish). If I had done that from the get-go I would have saved an hour or two.
Sure, I have to include the executable, but since I'm not distributing this application I really don't care.
-
Aug 1st, 2011, 02:23 PM
#6
Lively Member
Re: Compress files in vb.net?

Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|