Process ps = new Process();
            ps.StartInfo.UseShellExecute = true;
            ps.StartInfo.FileName = FSPath + "Open_Fs_Cli.bat";
            ps.StartInfo.WorkingDirectory = FSPath;
            ps.StartInfo.CreateNoWindow = true;
            ps.Start();

 

ps.StartInfo.WorkingDirectory = FSPath;  这一句最为重要,否则运行后要么闪退,要么卡死,要么运行不了。

 

 


本文转载:CSDN博客