Task Scheduler - at startup

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
 
P

Pegasus \(MVP\)

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
 
A

Alan Illeman

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
 

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