如何解压缩.gz文件 [英] How to extract .gz file

查看:175
本文介绍了如何解压缩.gz文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有数千个需要解压缩的WinZip文件.这些文件属于.sdf.gz类型.请分享任何想法以完成此任务.

谢谢

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

推荐答案

"gz"扩展名通常表示g-zip压缩文件,请尝试 ^ ]可以处理大多数文件格式,还有一个命令行版本,您可以通过Process.Start(...)在c#程序中使用.
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(...).


要进行解压缩,您需要: MSDN:GZipStream.Read方法 [^ ]

看看这个样本以了解一些想法:
GZipStream-压缩/解压缩字符串 [
For decompressing you would need: MSDN: GZipStream.Read Method[^]

Have a look at this sample to get some idea:
GZipStream - Compress/Decompress a string[^]


使用System.IO.Compression.GZipStream.


这篇关于如何解压缩.gz文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆