C#窗体程序使用process.start打开可执行文件,结果可执行文件一闪而过????

来源:百度知道 编辑:UC知道 时间:2024/06/06 16:44:33

Process p = new Process();
p.StartInfo.FileName = "你想要打开的EXE的绝对路径";
p.StartInfo.LoadUserProfile = true;
p.StartInfo.WorkingDirectory = "EXE文件所在的文件夹";
p.Start();
我用这样打开的,把程序关了,进程都不会关

用cmd.exe /K 执行会保持窗口