jjzjj

CreateFromDirectory

全部标签

c# ZipFile.CreateFromDirectory - 进程无法访问文件 "path_to_the_zip_file_created.zip",因为它正被另一个进程使用

基本代码: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的

c# ZipFile.CreateFromDirectory - 进程无法访问文件 "path_to_the_zip_file_created.zip",因为它正被另一个进程使用

基本代码: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的