如何从.Zip存档中删除文件? [英] How Can I Delete A File From A .Zip Archive?
本文介绍了如何从.Zip存档中删除文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须删除.zip档案中的文件。
我该怎么办?
再见
解决方案
使用 ZipArchiveEntry.Delete方法 [ ^ ]
如果你需要使用.NET进行ZIP操作,有几个选项。请查看我过去的答案:
制作Zip文件期间下载 [ ^ ],
如何在c#中使用相同的文件名在zip文件夹中添加文件名 [ ^ ],
在C#4.0中压缩文件 [ ^ ]。
-SA
Hi,
I have to delete a file inside a .zip archive.
How can I do?
Bye
解决方案
Use the ZipArchiveEntry.Delete Method[^]
If you need to use .NET for ZIP operation, there are several options. Please see my past answers:
Make Zip File during download[^],
how to add file name in zip folder with same file name in c#[^],
Zipping of files in C# 4.0[^].
—SA
这篇关于如何从.Zip存档中删除文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文