ASP.NET中运行可执行程序
注意:给要执行的程序添加“Everyone” 的可执行权限。
string path = Server.MapPath(".");
path = System.IO.Path.Combine(path, "bin/test.exe");
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = path;
p.Start();
path = System.IO.Path.Combine(path, "bin/test.exe");
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = path;
p.Start();