Running executable by a windows service

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!
 
W

Willie jan

specify the complete path because services have as applicationpath the
windows system directory and not the path where you started the service
program.
 
C

Chris Dunaway

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top