打开文件或目录


using System.Diagnostics;
Process.Start(OpenFullPath);



using System.Diagnostics;
Process ps=new Process();
ps.StartInfo.FileName=@"E:\CSharp3\QXKMeTone\bin\Debug\cardtest.exe";
ps.Start();

带参数

Process.Start("OpenFullPath","参数");



返回网页接收可执行程序返回值
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "test.exe";
p.Start();
p.WaitForExit();
string output = p.StandardOutput.ReadToEnd();

注:控制台程序进行标准输出

相关文章:

  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2021-08-07
猜你喜欢
  • 2021-12-13
  • 2021-06-16
  • 2021-04-08
  • 2021-11-30
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案