How can I run console application from within NT service?

A

Andreas

Hi everybody,

Can anyone help with an advice on how to start console application from
within NT service application that doesn't have access to the user's
desktop? I don't need to wait on termination of this console application,
just to run it. The problem is that because service doesn't have access to
the desktop it can't create console window and hence nothing is started.
However I'm not interested in the output of this application and don't need
this console be created. Any ideas are welcome!

Thanks in advance,
Andreas
 
M

Martin Stephenson

When writing a service app there is a switch which allows access to desktop.
Have a look at the services properties/Log On tab and see if the 'Allow
service to interact with desktop' checkbox is available for your service.

Happy new year
Martin
 

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