Task Scheduler - at startup

  • Thread starter Thread starter Jim Matthews
  • Start date Start date
J

Jim Matthews

I am looking for some info about scheduling tasks at "system startup"

At exactly what point would the batch file be run ?

We have a batch file which will start up two services and then an
application, that we wish to be executed whenever the server is rebooted, as
opposed to waiting for someone to log on.

Will the system bring up all other system and app services and then run the
batch file ?

Any caveats to this ?

Thanks,

JM
 
Jim Matthews said:
I am looking for some info about scheduling tasks at "system startup"

At exactly what point would the batch file be run ?

We have a batch file which will start up two services and then an
application, that we wish to be executed whenever the server is rebooted, as
opposed to waiting for someone to log on.

Will the system bring up all other system and app services and then run the
batch file ?

Any caveats to this ?

Thanks,

JM

I don't think the order of execution is guaranteed, so you have
to guarantee it yourself by running your startup task like so:

@echo off
:again
net start | find /i "Some Service Name" && goto Active
ping localhost -n 10
goto :again

:Active
c:\Tools\YourTask.exe
 
Pegasus (MVP) said:
rebooted,

I don't think the order of execution is guaranteed, so you have
to guarantee it yourself by running your startup task like so:

@echo off
:again
net start | find /i "Some Service Name" && goto Active
ping localhost -n 10
goto :again

:Active
c:\Tools\YourTask.exe

On a similiar note, can I add a service to those listed in
Component Services?

Cheers,
Alan
 
Back
Top