C# process 隐藏应用程序的进度条

命令行参数那加上-ibck指定后台运行。

string sourceFilepath = "d:\测试.rar";

string targetFilepath = "d:\测试";
if (!Directory.Exists(targetFilepath))
{
Directory.CreateDirectory(targetFilepath);
}
Process proc = new Process();
proc.StartInfo.FileName = "Winrar.exe";
proc.StartInfo.Arguments = "x -t -ibck -o-p " + sourceFilepath + " " + targetFilepath;
proc.Start();
proc.WaitForExit();
MessageBox.Show("解压完成!");
原文地址:https://www.cnblogs.com/qiyecao/p/8607772.html