![[About]](e:\os2httpd_1.3.2\htdocs\rexxtipsntricks\about.gif)
![[Toc]](e:\os2httpd_1.3.2\htdocs\rexxtipsntricks\toc.gif)
0.9b (c) 1995 Peter Childs
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.
Inf-HTML End Run - Successful