shutdown.exe /A
You didn't tell us what O/S you're using so I have assumed it's Windows. The shutdown exe is in the NTReskit so I assume it's available in the other Reskits, too...
I also assume that you can do it using the Win32 API but I don't know how off-hand.
perldoc -f Win32Win32::AbortSystemShutdown(MACHINE) [EXT] Aborts a system shutdown (started by the InitiateSystemShutdown function) on the specified MACHINE.
In reply to Re: Over ridding a shutdown command.
by maa
in thread Over ridding a shutdown command.
by blackadder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |