且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从.Zip存档中删除文件?

更新时间:2023-12-04 21:11:22

使用 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