Executing Processes as a Windows Service

J

Jason

I've tried executing processes under Visual Basic.NET-based Windows
services in the past but to no avail.

Is it possible to execute a process via System.Diagnostics in a
Windows Service? The user does not have to be able to interact with
the process, but let's say the (hidden) process does a file
conversion. I'd like to be able to execute such a process in a Windows
Servce.

Any suggestions will be greatly appreciated. Thanks in advance.

Jason
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed) (Jason) scripsit:
Is it possible to execute a process via System.Diagnostics in a
Windows Service? The user does not have to be able to interact with
the process, but let's say the (hidden) process does a file
conversion. I'd like to be able to execute such a process in a Windows
Servce.

Take a look at the 'ServiceController' class.
 

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