Batch file on shutdown

  • Thread starter Thread starter Mav
  • Start date Start date
M

Mav

Hi,

This may be a stupid question.....but....

I want to run a short batch file on shutdown. How do I go about this and
where can I put it?

Is there a file which dictates which programs are run at shutdown?

Thanks very much for your help.

Mav
 
Windows has never provided a reliable means to acomplish this. Numerous
schedulers from third parties have considered attempting it, but there are
lots of problems. For example, the Shutdown API provides no means to "halt"
or "suspend" a shutdown until some number of other applications are run or
completed. There's not even a practical means to *report* when such
applications or processes have completed. It's just not something MS has
ever chosen to address.

The better approach is to embed a shutdown request in your batch file, iow,
reverse the responsibilities. Instead of the shutdown process managing
execution of other apps/processes, make those apps/processes manage the
shutdown process. So you might create a batch file that executes various
apps, and close it w/ a shutdown request (execute "shutdown /?" from any
command prompt to see options).

HTH

Jim
 
Mav said:
Hi,

This may be a stupid question.....but....

I want to run a short batch file on shutdown. How do I go about this and
where can I put it?

Is there a file which dictates which programs are run at shutdown?

Thanks very much for your help.

Mav

Give this a look.

http://www.karenware.com/powertools/ptstopper.asp

--
D

I'm not an MVP a VIP nor do I have ESP.
I was just trying to help.
Please use your own best judgment before implementing any suggestions or
advice herein.
No warranty is expressed or implied.
Your mileage may vary.
See store for details. :)

Remove shoes to E-mail.
 
Back
Top