NirCmd Command Reference - initshutdown

initshutdown {message} {timeout value in seconds} {force} {reboot}
Initiate a system shutdown. This command is somewhat similar to exitwin command, but it has some other features that exitwin doesn't support. This command is not supported on Windows 95/98/ME. All parameters of this command are optional. If you don't specify any parameter, the system shutdown is initiated without displaying message and without waiting.
The parameters:
  • {message}: The message to display before starting the system shut down.
  • {timeout value in seconds}: The number of seconds to wait before starting the system shut down.
  • {force}: Forces all applications to terminate, even without saving your work.
  • {reboot}: Reboot after the system shutdown.

Examples:
initshutdown "shutting down the system within 60 seconds" 60 reboot
initshutdown "" 0 force

Other commands:
abortshutdownbeepcdromchangesysvolumechangesysvolume2
clipboardcloseprocesscmdshortcutcmdshortcutkeycmdwait
convertimageconvertimagesdlgdlganyelevate
elevatecmdemptybinexecexec2execmd
exitwinfilldeletegachibernateinetdial
infoboxinidelsecinidelvalinisetvalinitshutdown
killprocesslockwsloopmemdumpmonitor
movecursormultiremotemutesysvolumeparamsfileqbox
qboxcomqboxcomtopqboxtoprasdialrasdialdlg
rashangupregdelkeyregdelvalregeditregsetval
regsvrremotereturnvalsavescreenshotsavescreenshotfull
savescreenshotwinscreensaverscriptsendkeysendmouse
servicesetcursorsetcursorwinsetdialuplogonsetdisplay
setfilefoldertimesetfiletimesetprimarydisplaysetprocessaffinitysetprocesspriority
setsysvolumesetsysvolume2setvolumeshellcopyshellrefresh
shexecshortcutspeakstandbystdbeep
sysrefreshurlshortcutwaitwaitprocesswin

NirCmd Web Page

Download NirCmd

NirSoft Web Site