Link to home
Start Free TrialLog in
Avatar of npnp
npnp

asked on

Automatic program start

On windows 2000:  I would like a certain application to start automatically upon completion of bootup.  Conversely, I would like the operating system to shut down when that application is terminated.

How do I do these things?
Avatar of guidway
guidway
Flag of United States of America image

I think the only option is to create a program that does this. I'm not sure of any available. There's a possibility maybe a batch script could do this. I'm not sure though how you could tell when the program is done executing so you could fire the command to shutdown windows. That would be a challenge (if not impossible) using a batch file. Let me play around some and if I figure out something I'll let you know. At this point though, I don't see of anyway of doing it w/o having to write a program to do it. I don't know of any programs that will do this. Have you looked at task scheduler to see if there is something that can be set in it?  I'll let you know if I find something,

guidway
Avatar of jhance
jhance

What you are asking for is called a SERVICE.  There are a number of things you must do right to build a service and it's far beyond the scope of a 50 pt. question here.

I suggest the excellent book from WROX titled Professional NT Services by Kevin Miller.  It contains everything you might need to know to write a SERVICE application.
ASKER CERTIFIED SOLUTION
Avatar of SysExpert
SysExpert
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of npnp

ASKER

Thank you.  I'll take it from here.
I'm running low on points, or I would have offered more.
-- Norm