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

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

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -