Okay basically I want tomake a program where the user selects files of their pc. and then my program will put them all into a ZIP folder.
Anybody know how I can do that?
Printable View
Okay basically I want tomake a program where the user selects files of their pc. and then my program will put them all into a ZIP folder.
Anybody know how I can do that?
Try searching the CodeBank for the ZIP class or sth. similar. I remember seeing something like that there. From there on it should be a piece of cake.
Or you could try this: http://www.polarsoftware.com/product...ight/index.asp
Given that that Polar Software tool is ActiveX I'd avoid it.
There are two submissions in the CodeBank that would be relevant. Shaggy Hiker (I believe) submitted code that made use of the Java ZIP functionality via J#. J# has been discontinued by Microsoft so I'd probably avoid that now.
I submitted code that used SharpZipLib. I would suggest that that's the way to go. SharpZipLib is open source and is still being developed. There's at least one newer version been released since I wrote that code for .NET 1.1. I would suggest that you download the newest version and then reference it in your own project. You can then use my code as an example of how to interact with the SharpZipLib library.
I use the ShaprZipLib - works quite well with the ZIP formats I use.
I'm just curious as to why you say to avoid this because it is an ActiveX. Are ActiveX components bad?Quote:
Originally Posted by jmcilhinney
ActiveX components are not inherently bad but they are not .NET components. If you're creating a .NET application then I think most people would agree that it's preferable to go all-managed if possible. If a COM component is your only choice then so be it but I'd sooner use a .NET component over a COM component if I had the choice.Quote:
Originally Posted by nbrege
It wasn't me, I've always avoided Java and J#.Quote:
Originally Posted by jmcilhinney
Probably kleinma then. For some reason I always get you two mixed up.Quote:
Originally Posted by Shaggy Hiker
Yeah, it was kleinma. Just had a look. I need to remember that you're the devilishly handsome, James Bond type of the two.
Actually, I'm the old one (compared to Kleinma).