command prompt do not opens up when calling (.exe) console application from web application c#

前端 未结 2 1330
情歌与酒
情歌与酒 2021-01-27 15:50

i am using this function from my web application to call exe file . when it calls .exe file every thing happens accurately, i can see it as running process in task manager proce

相关标签:
2条回答
  • 2021-01-27 16:05

    IIS and its child processes are running in different (and windowless) session. So you can't see if window is open. Also some processes may behave strangly due this (you probably did not hit such issues, and unlikly to have problems with console apps).

    You can see it by turning on "Session ID" column in task manager: View -> Select columns-> Session ID (on processes tab).

    0 讨论(0)
  • 2021-01-27 16:24

    Have you tried setting the window style to Maximized?

    ProcessStartInfo startInfo = new ProcessStartInfo("IExplore.exe");
    startInfo.WindowStyle = ProcessWindowStyle.Maximized;
    Process.Start(startInfo);
    
    0 讨论(0)
提交回复
热议问题