Results 1 to 10 of 10

Thread: create a ZIP Tool.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2007
    Posts
    146

    create a ZIP Tool.

    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?
    [email protected]

    Currently Using:
    Microsoft Visual Basic 2008 Expess Edition
    Windows Vista Home Basic
    1280 x 1024

    Rank:
    Novice


  2. #2
    Frenzied Member obi1kenobi's Avatar
    Join Date
    Aug 2007
    Posts
    1,091

    Re: create a ZIP Tool.

    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.

  3. #3
    Frenzied Member
    Join Date
    Jul 2006
    Location
    MI
    Posts
    2,012

    Re: create a ZIP Tool.


  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: create a ZIP Tool.

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: create a ZIP Tool.

    I use the ShaprZipLib - works quite well with the ZIP formats I use.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  6. #6
    Frenzied Member
    Join Date
    Jul 2006
    Location
    MI
    Posts
    2,012

    Re: create a ZIP Tool.

    Quote Originally Posted by jmcilhinney
    Given that that Polar Software tool is ActiveX I'd avoid it.
    I'm just curious as to why you say to avoid this because it is an ActiveX. Are ActiveX components bad?

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: create a ZIP Tool.

    Quote Originally Posted by nbrege
    I'm just curious as to why you say to avoid this because it is an ActiveX. Are ActiveX components bad?
    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  8. #8
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: create a ZIP Tool.

    Quote Originally Posted by jmcilhinney
    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.

    ary.
    It wasn't me, I've always avoided Java and J#.
    My usual boring signature: Nothing

  9. #9
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: create a ZIP Tool.

    Quote Originally Posted by Shaggy Hiker
    It wasn't me, I've always avoided Java and J#.
    Probably kleinma then. For some reason I always get you two mixed up.

    Yeah, it was kleinma. Just had a look. I need to remember that you're the devilishly handsome, James Bond type of the two.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  10. #10
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: create a ZIP Tool.

    Actually, I'm the old one (compared to Kleinma).
    My usual boring signature: Nothing

Posting Permissions

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



Click Here to Expand Forum to Full Width