Use the command SHUTDOWN to perform a system shutdown from the command
line or a batch or REXX program. SHUTDOWN needs no parameter.
You can also use the command
SETBOOT /IBD:x
where x is the drive you want to boot from next or a non-existing drive if you do not want to reboot the PC.
The difference between them:
Using SHUTDOWN OS/2 pops up a warning dialog for every open DOS or OS/2 session, whereas SETBOOT closes all DOS, Windows and OS/2 applications without any prompting.
Beginning with Fixpack #6 for WARP 4 there is another program to perform a system shutdown from the command line: TSHUTDWN.EXE.
TSHUTDWN.EXE does a normal system shutdown without pop up dialogs for OS/2 or DOS sessions. Note that you must unpack TSHUTDWN.EXE manually using the command
unpack TSHUTDWN.EX_
if you don't have a machine with WarpSpace on Demand. The file TSHUTDWN.EX_ is in the fixpack directory \OS2.3.
According to a note from Armin Schwarz (see EMail Addresses) there are some restrictions using TSHUTDWN.EXE:
"The readme of Warp4 FP8 says to use /N to eliminate any prompts when shutting down. I found no difference between using /N or not using that option.
TSHUTDWN does shut down OS/2 window, DOS and seamless WIN-OS2 window sessions without prompting. BUT IT WILL PROMPT TO CLOSE A FULLSCREEN OS/2 SESSION.
TSHUTDWN must be used on a Warp 4 FP8 system. IT WILL NOT SHUTDOWN WITHOUT PROMPTING ON ANY OTHER WARP 3 OR 4 SYSTEMS. In other words, TSHUTDWN works just like SHUTDOWN on Warp 3 and Warp 4 (pre FP6). "