以编程方式解压缩文件 [英] Decompress files programmatically

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

问题描述

嗨 我将Outlook邮件附件保存到我的个人计算机中的目录中,并且可以正常工作.它们保存正确.

我需要做的是压缩文件夹出现时,我需要解压缩并将这些邮件保存到目标文件夹.

请帮助...

Hi I am saving outlook mail attachments to Directories in my personal computer and that works. They are saving correctly.

What I need to do is when a compressed folder comes, I need to decompress it and save those mails to the target folder.

Please help...

推荐答案

要以编程方式执行该操作,GZipStream类非常有用.在 http://msdn.microsoft.com/en-us/library/上的参考system.io.compression.gzipstream.aspx [ ^ ]
To perform the operation programatically, GZipStream class is useful. Reference at http://msdn.microsoft.com/en-us/library/system.io.compression.gzipstream.aspx[^]


至少有一个免费的图书馆可以满足您的需求.只需在Google上搜索"C#zip文件"或更合适的内容即可.
There''s at least one free library available that does what you need. Just google for "C# zip files" or something more appropriate.


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

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