c#查询压缩文件中制定文件 用C#代码怎么写 现在需要写一个程序要求就是 有很多文件 如.xls .doc .jpg .png .gif 的文件 压缩在压缩包里面目标:如果压缩包里面 有一个1.xls 的文件 我怎么写程序 去压缩包中找到1.xls这个文件在哪个压缩包中 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可不可以先把压缩文件解压到临时文件夹中,然后取得解压出来的所有文件,遍历,判断。然后删除解压的文件。[DllImport("Unzip32")] public extern static int UnZip(int hwnd, string szCmdLine, StringBuilder szOutput, int dwSize);public static long ExpandZip(string targetFile, string destFolder) { string command = "-xsoqq--i \"" + targetFile + "\" \"" + destFolder + "\\\""; return UnZip(0, command, new StringBuilder(), 0); } http://www.cnblogs.com/terer/articles/1588717.htmlhttp://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx 跪求高手写一个正则表达式 datagridview获取当前单元格行号问题 用户登录问题(新手). 求助:WCF ICP问题 SVG/VML网站上线,散分! 怎样取得渐变色呢? 做了一个自定义的复合控件,如何得到其mouseenter事件? 我的dataTimerPicker控件在韩文WinXP系统是乱码? 武汉做c#和asp.net的看看这里 帮帮小妹!这么简单的问题,也有错? 还是这里人气多,求一个最佳实践 BHO的Navigate2方法抛出UnauthorizedAccessException异常,百思不解,求能人指点!
public extern static int UnZip(int hwnd, string szCmdLine, StringBuilder szOutput, int dwSize);
public static long ExpandZip(string targetFile, string destFolder)
{
string command = "-xsoqq--i \"" + targetFile + "\" \"" + destFolder + "\\\"";
return UnZip(0, command, new StringBuilder(), 0);
}
http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx