110,534
社区成员
发帖
与我相关
我的任务
分享
Process p = new Process();
p.StartInfo.WorkingDirectory = @"D:\Program Files\QQ\Bin\";
p.StartInfo.FileName = "qq.exe";
p.Start();
System.Environment.CurrentDirectory = ”D:\\Program Files\\xxx“;//先改变当前工作路径到它的程序路径
System.Diagnostics.Process.Start("xxx.exe") //因为路径改变了,这里启动也只要相对路径了。