English 中文(简体)
zi 不要提取目标目录
原标题:zip not Extracting to target directory
  • 时间:2011-01-03 19:05:28
  •  标签:
  • c#-3.0

This is the code using (ZipFile zipnew = ZipFile.Read(strPath)) { foreach (ZipEntry zenew in zipnew) { zenew.Extract(exPath); }

zenew.filename="c: empimagesfish2.jpg" exPath = "c: empmembers12images"

我发现这一错误。 档案C: empImagesfish2.jpg已经存在。

Hope to get a reply Thanks

问题回答

它期望你们把超凡旗打成一片。 例如:

using (ZipFile zipnew = ZipFile.Read(strPath)) { foreach (ZipEntry zenew in zipnew)        
   {
      zenew.filename="c:	empimagesfish2.jpg"
      exPath = "c:	empmembers12images"
      zenew.Extract(exPath, ExtractExistingFileAction.OverwriteSilently);
   }




相关问题
Linq - 2 tables - Sum

Asiento ******** Id_Asiento integer key Fecha date It_Asiento ********** Id_Asiento integer Forenkey Importe float I wan to do This SQL Query with Linq select Asiento.Id_Asiento, ...

Threading and un-safe variables

I have code listed here: Threading and Sockets. The answer to that question was to modify isListening with volatile. As I remarked, that modifier allowed me to access the variable from another thread....

How to cancel an asynchronous call?

How to cancel an asynchronous call? The .NET APM doesn t seem to support this operation. I have the following loop in my code which spawns multiple threads on the ThreadPool. When I click a button on ...

热门标签