从调用控制台asp.net应用

编程入门 行业动态 更新时间:2024-10-03 12:38:19
本文介绍了从调用控制台asp应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我尝试从asp调用控制台机应用,当我把断点控制台应用程序,为什么它不能阻止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 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应用

本文发布于:2023-11-03 04:34:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1554244.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控制台   asp   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!