Running Processes from Windows Service

J

Jason E. Trout

I wrote an applicaion in VB.NET that executes a process in the
background using the System.Diagnostics namespace. It peforms as
expected as an application. I rewrote the code into a Windows Service
and the process does not seem to function correctly.

I can execute calculator.exe, for example, as a process and it'll
appear in the running processes, but I never see the application.

Any suggestions?

Thanks,
Jason
(e-mail address removed)
 
G

Guest

The issue is that a service is not the signed on user, and has no interaction with the user's desktop. Therefore, while you can run "calc" from a service, you can only stop it from the Task Manager (or by killing the process in some other programmtic way) and you can not interact with it. Remember that services are for background tasks.

HTH
 

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