111,118
社区成员
发帖
与我相关
我的任务
分享
System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo(@"WinRAR.exe", "a -ep \"" + Path + "\\TZ.rar\" \"" + Path + "\\temp\\\"");
info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
System.Diagnostics.Process Proc=System.Diagnostics.Process.Start(info);//生成压缩文件
Proc.WaitForExit(5000);
if (Proc.HasExited == false)
{
Proc.Kill();
}