基本代码:stringstartPath=@"C:\intel\logs";stringzipPath=@"C:\intel\logs-"+DateTime.Now.ToString("yyyy_dd_M-HH_mm_ss")+".zip";ZipFile.CreateFromDirectory(startPath,zipPath);Error:theprocesscannotaccessthefile"path_to_the_zip_file_created.zip"becauseitisbeingusedbyanotherprocess.上述设置在我安装了VisualStudio的
基本代码:stringstartPath=@"C:\intel\logs";stringzipPath=@"C:\intel\logs-"+DateTime.Now.ToString("yyyy_dd_M-HH_mm_ss")+".zip";ZipFile.CreateFromDirectory(startPath,zipPath);Error:theprocesscannotaccessthefile"path_to_the_zip_file_created.zip"becauseitisbeingusedbyanotherprocess.上述设置在我安装了VisualStudio的