starting a process from a windows service

B

Billy Cormic

Hello,
I have successfully created a windows service. I would now like
the windows service to call another program and start it when the
service starts. I have been unable to do this. For the windows
service OnStart sub I have the following code:

Protected Overrides Sub OnStart(ByVal args() As String)
EventLog1.WriteEntry("In OnStart")

Process.Start("Explorer.exe")

End Sub

However this code does not start the windows explorer. Does anyone
know what I am doing wrong?

Thanks,
Billy
 
C

Cor

Hi Billy,

Where you want the Explorer to start, on your server where your service is
running?

I think this would be a security problem if you could do this on your
client.

But just my thought,

Cor
 
B

Billy Cormic

Cor,
I am just using explorer as an example program to start. In
reality I am trying to start a program that I wrote that automatically
parses XML documents. I have been trying to figure out this problem
for several days now... with no luck. I may have to refrase my
problem and repost.

Billy
 

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

Top