Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. To Unzip the Files using C#

To Unzip the Files using C#

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    senthilsstil
    wrote on last edited by
    #1

    Hi Friends, I need to unzip the files using C# without third party component.I have searched in google but i got only adding third party component.Is it possible to have without third party component? if possible means kindly help me how to do.... Thanks & Regards Senthil Kumar.T.S

    S C 2 Replies Last reply
    0
    • S senthilsstil

      Hi Friends, I need to unzip the files using C# without third party component.I have searched in google but i got only adding third party component.Is it possible to have without third party component? if possible means kindly help me how to do.... Thanks & Regards Senthil Kumar.T.S

      S Offline
      S Offline
      Spunky Coder
      wrote on last edited by
      #2

      If the files are zipped through third party library then u have to use the same to unzip... check the following link ...it shows the compression using windows shell API and C# compression[^]

      .....

      D 1 Reply Last reply
      0
      • S Spunky Coder

        If the files are zipped through third party library then u have to use the same to unzip... check the following link ...it shows the compression using windows shell API and C# compression[^]

        .....

        D Offline
        D Offline
        dan sh
        wrote on last edited by
        #3

        The command format for extracting files is: winzip32 -e [options] filename[.zip] folder where -e is required. options: -o for "Overwrite existing files without prompting" This along with System.Diagnostic.Process class might help.

        Avoid Google. Use Blackle[^]

        D 1 Reply Last reply
        0
        • D dan sh

          The command format for extracting files is: winzip32 -e [options] filename[.zip] folder where -e is required. options: -o for "Overwrite existing files without prompting" This along with System.Diagnostic.Process class might help.

          Avoid Google. Use Blackle[^]

          D Offline
          D Offline
          dan sh
          wrote on last edited by
          #4

          System.Diagnostics.Process.Start("C:\\program files\\WinZip\\winzip32.exe", " -e c:\\qa.zip c:\\new"); Unzips qa.zip to path c:\new.

          Avoid Google. Use Blackle[^]

          S 1 Reply Last reply
          0
          • D dan sh

            System.Diagnostics.Process.Start("C:\\program files\\WinZip\\winzip32.exe", " -e c:\\qa.zip c:\\new"); Unzips qa.zip to path c:\new.

            Avoid Google. Use Blackle[^]

            S Offline
            S Offline
            Spunky Coder
            wrote on last edited by
            #5

            Well winzip is again a third party component...he wants to do it without using that...

            .....

            1 Reply Last reply
            0
            • S senthilsstil

              Hi Friends, I need to unzip the files using C# without third party component.I have searched in google but i got only adding third party component.Is it possible to have without third party component? if possible means kindly help me how to do.... Thanks & Regards Senthil Kumar.T.S

              C Offline
              C Offline
              carbon_golem
              wrote on last edited by
              #6

              System.IO.Compression namespace has a class called GZipStream. It's fairly simple to use, so I'd start there before I went and shackled your app to winzip. Scott P

              “It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.” -Edsger Dijkstra

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups