How to run an EXE program from a Windows Service using C# -


i want run exe file windows service using c# , i'm using code in onstart() service's method.

process myproc = new process(); myproc.startinfo.filename = "...\\myexe.exe"; myproc.start(); 

myexe.exe simple console application launch console text. when start windows service can see myexe.exe in background processes, there no console shown on desktop.

what can wrong ?

windows services won't display interface default, if launch separate program. when configure service, need check "allow service interact desktop" checkbox on log on tab.

opening command line application not elegant of solutions, , avoid doing if could.


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -