问题描述
亲爱的所有人,
我想从压缩文件夹复制文件并放入目标文件夹。我正在使用VS2012 .net framework 4.5。我看过DotnetZip,但它对我没有帮助。我的代码如下。它适用于解压缩文件夹但不适用于压缩文件夹。我怎样才能做到这一点。请帮我。这非常紧急。在此先感谢
public static void Main(string [] args)
{
File.Copy( C:\\C#CodeExample \\TDPOC \\ABC.zip \\AUDIT.LOG,C:\\ C#CodeExample \\ TDPOC \\NewLogFile \\ MyNewLogFile.LOG);
}
Dear All,
I want to copy a file from zipped folder and put in a destination folder. I am using VS2012 .net framework 4.5. I have looked at DotnetZip but it doesn't help me. my code is below. It is working for unzip folder but not working for zipped folder. how can I do that. please help me. It's very urgent. Thanks in Advance
public static void Main(string[] args)
{
File.Copy("C:\\C#CodeExample\\TDPOC\\ABC.zip\\AUDIT.LOG, C:\\C#CodeExample\\TDPOC\\NewLogFile\\MyNewLogFile.LOG);
}
推荐答案
这篇关于从压缩文件夹中复制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!