Running executable by a windows service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Guys,
I need to use a windows service I created to run an executable on my system;
I tried the following form OnStart, form OnContinue - nothing.

Dim p As New Process
Dim pi As New ProcessStartInfo
pi.FileName = "ccc.exe"
p.StartInfo = pi
p.Start()

This solution DID work in my WinForm application but not in the service

any idea?

Thanks!
 
specify the complete path because services have as applicationpath the
windows system directory and not the path where you started the service
program.
 
any idea?

In addition, by default, the service will run under the LocalSystem
account. This account may not have the necessary rights to run the exe.
On the Service Control Manager, you can set the account to use to run the
app, or grant the LocalSystem account the right to run this app.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 
Thanks Chris!

Which is the highest priority account for a service?

LocalSystem/LocalService.. ?


Chris Dunaway" <"dunawayc[[at]_lunchmeat said:
any idea?

In addition, by default, the service will run under the LocalSystem
account. This account may not have the necessary rights to run the exe.
On the Service Control Manager, you can set the account to use to run the
app, or grant the LocalSystem account the right to run this app.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 
Back
Top