从调用控制台asp.net应用 [英] Calling console application from asp.net
本文介绍了从调用控制台asp.net应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试从asp.net调用控制台机应用,当我把断点控制台应用程序,为什么它不能阻止there.How可以叫我的控制台应用程序?
VAR PROC =的Process.Start(D:\\\\ \\\\ Edefter \\\\ EFaturaConsoleTxtParser斌\\\\ \\\\调试EFaturaConsoleTxtParser.exe,/ ARG1 / ARG2);
proc.WaitForExit();
解决方案
我不知道这个,但无论如何你可以尝试
的ProcessStartInfo的StartInfo =新的ProcessStartInfo();
startinfo.FileName = @D:\\\\ \\\\ Edefter \\\\ EFaturaConsoleTxtParser斌\\\\ \\\\调试EFaturaConsoleTxtParser.exe
startinfo.CreateNoWindow = TRUE;
startinfo.UseShellExecute =真;
流程myProcess =的Process.Start(StartInfo的);
myProcess.Start();
I try to call console appliction from asp.net when i put breakpoint in console app why it can't stop there.How can i call console application?
var proc = Process.Start("D:\\Edefter\\EFaturaConsoleTxtParser\\bin\\Debug\\EFaturaConsoleTxtParser.exe", "/arg1 /arg2");
proc.WaitForExit();
解决方案
I'm not sure about this but anyway you can try
ProcessStartInfo startinfo = new ProcessStartInfo();
startinfo.FileName =@"D:\\Edefter\\EFaturaConsoleTxtParser\\bin\\Debug\\EFaturaConsoleTxtParser.exe";
startinfo.CreateNoWindow = true;
startinfo.UseShellExecute = true;
Process myProcess = Process.Start(startinfo);
myProcess.Start();
这篇关于从调用控制台asp.net应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文