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
Post a Comment