Click here to Skip to main content
15,348,881 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am having thousands of WinZip files which needs to be extracted. The files are of .sdf.gz types.Please share any idea to accomplish this task.

Thanks
Posted

The "gz" extension usually mean g-zip compressed files, try http://www.7-zip.org/download.html[^] it can handle most file format, there is also a command line version which you can use in your c# programs via Process.Start(...).
   
For decompressing you would need: MSDN: GZipStream.Read Method[^]

Have a look at this sample to get some idea:
GZipStream - Compress/Decompress a string[^]
   
Comments
Prasad_Kulkarni 14-May-12 5:29am
   
+5!
Sandeep Mewara 14-May-12 8:25am
   
Thanks.
Pranav Thakur 14-May-12 5:51am
   
There is compilation error here Decompress.CopyTo(outFile); in the link u provided.Can u please help me to rectify this error
Use System.IO.Compression.GZipStream.
   
Comments
Pranav Thakur 14-May-12 5:16am
   
can you please share any sample code
AhsanS 14-May-12 5:33am
   
If you click on any of the above resources posted by "Sandeep Mewara", you will find complete working solutions.
Pranav Thakur 14-May-12 7:26am
   
There is compilation error here Decompress.CopyTo(outFile); in the link provided by "Sandeep Mewara".Can u please help me to rectify this error

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900