using
System.Diagnostics;
//
要加上这个命名空间
...................
Process p = new Process();
string path = HttpContext.Current.Request.PhysicalPath;
string file = path.Substring( 0 , path.LastIndexOf( " / " ) + 1 ) + @" 命令.bat " ;
p.StartInfo.FileName = file;
p.StartInfo.CreateNoWindow = true ;
p.Start();
...................
Process p = new Process();
string path = HttpContext.Current.Request.PhysicalPath;
string file = path.Substring( 0 , path.LastIndexOf( " / " ) + 1 ) + @" 命令.bat " ;
p.StartInfo.FileName = file;
p.StartInfo.CreateNoWindow = true ;
p.Start();