【发布时间】:2013-10-16 07:40:21
【问题描述】:
我正在尝试使用以下语法从 C# 中的 netowrk 解压缩文件:
string dezarhiverPath = ConfigurationSettings.AppSettings["PathWinZip"] + "\\WINZIP32.EXE";
ProcessStartInfo pro = new ProcessStartInfo();
pro.WindowStyle = ProcessWindowStyle.Hidden;
pro.FileName = dezarhiverPath;
pro.Arguments = " -e -j -o " + prmSource + " " + prmDestination;
Process x = Process.Start(pro);
x.WaitForExit();
如果我使用这个 sintax 并且我的 zip 文件在我的计算机上的本地,它可以工作但是当我移动路径并且我试图从网络上的某个位置解压缩时不起作用。保留在“x.WaitForExit”行()"。如果我尝试手动解压缩它可以工作。我的用户有权访问此位置。我没有错误。
谁能帮我解决这个问题?
【问题讨论】:
-
有人能告诉我参数 -e -j -o 是什么意思吗?
-
将
WindowStyle设置为Normal并查看窗口会发生什么。
标签: c# .net-4.0 desktop-application unzip winzip