Is there any way, in Windows 7 Professional
, to run a batch script (e.g., a .BAT file) when the user clicks on "shutdown" (not a batch file scheduled to shut down the machine, just one that runs only if the user clicks on "shutdown")?
Ideally, such a script would show the command prompt window and offer an option to cancel the shutdown procedure.
Solutions that do not require a third-party utility would be preferable.
question from:
https://stackoverflow.com/questions/12434863/executing-a-batch-script-on-windows-shutdown 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…