现在的位置: 首页 > 综合 > 正文

.net Web调用控制台程序

2018年02月11日 ⁄ 综合 ⁄ 共 427字 ⁄ 字号 评论关闭

 Process p = new Process();
                //显示窗口
                p.StartInfo.CreateNoWindow = false;
                p.StartInfo.UseShellExecute = false;
                p.StartInfo.FileName = @"F:\项目\2012年7月09日 cjrlUpdate\cjrlUpdate\bin\Release\cjrlUpdate.exe";//要调用的控制台程序
                // p.StartInfo.Arguments = this.txtValue.Text.Trim();   //给控制台程序的参数传递值
                p.Start();
                this.Response.Write(Response.StatusCode);//服务端执行状态

【上篇】
【下篇】

抱歉!评论已关闭.