Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running program as service

Status
Not open for further replies.

slashtmp

Programmer
Jun 1, 2004
1
US
is it possible to make a program where it checks to see if a certain program is launched..and if so..run another program.

kind of check a certain program to be running in the task manager..how can i do this?
 
If you are using VS.NET then you have everything there to an elegant implementation of what you want.
First you start by creating a Windows Service application using the template or you can do that programmatically.
To check for running tasks , there is the Process class.
You have there everything for setup and deployment.
Use the .exe.config file to pass the list of tasks to watch by implementing a watcher thread on this file (see FileSystemWatcher class) without stop/start of the service.
-obislavu-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top