c# - Unable to launch an exe file from webapi Controller MVC -
hi trying launch exe file webapicontroller on receiving request.
the exe file on server. want launch on server.
the exe triggered, can see process name in task manager not access console window.tried adding useshellexecute true. still shows under backround process
var processinfo = new processstartinfo("cmd.exe", "/c " + command); processinfo.createnowindow = true; processinfo.useshellexecute = true; processinfo.windowstyle = processwindowstyle.maximized; processinfo.redirectstandarderror = true; processinfo.redirectstandardoutput = true; var process = process.start(processinfo);
Comments
Post a Comment