Running a Windows Application executable at Shutdown

  • Thread starter Thread starter Walter Richardson
  • Start date Start date
W

Walter Richardson

How can I run a Windows Application executable, which only
displays a message box, prior to shutting down Windows
2000/NT? I'd like to execute my application when I
select "Shutdown..." on the Start menu. A message dialog
box is to be displayed and after selecting OK on the
dialog, the normal Shutdown processing is to continue.
Thanks in advance for help.
 
You can run a script at shutdown time via Group Policy (gpedit.msc).
However, since that script runs under the System account, it will
probably be invisible to you.

As an alternative, you can place your own shutdown command into
a batch file, and invoke this batch file when shutting down the machine.
If you do this then you have full control over the shutdown process.
Shutdown.exe from the Win2000 Resource Kit can do it.
 
Thank you very much.
-----Original Message-----
You can run a script at shutdown time via Group Policy (gpedit.msc).
However, since that script runs under the System account, it will
probably be invisible to you.

As an alternative, you can place your own shutdown command into
a batch file, and invoke this batch file when shutting down the machine.
If you do this then you have full control over the shutdown process.
Shutdown.exe from the Win2000 Resource Kit can do it.





.
 
Back
Top