home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
REXXBOOT.ZIP
/
TEST.CMD
< prev
Wrap
OS/2 REXX Batch file
|
1993-04-12
|
891b
|
39 lines
/* Test REXXBOOT functions. */
Say 'WARNING: This rexx program REBOOTS your computer!'
Say ''
Say 'Enter REBOOT to continue:'
Parse Pull answer
if answer <> 'REBOOT' then
do
Say 'Okay, goodbye.'
exit
end
Call RxFuncAdd 'SysReboot','REXXBOOT','SysReboot'
Call RxFuncAdd 'SysSyncDisk','REXXBOOT','SysSyncDisk'
Say 'First we will issue SysSyncDisk, which calls DosShutdown with'
Say 'the parameter 1L. UNDER OS/2 2.1 (6.498+) this has the effect'
Say 'of flushing all disk caches. Under 2.0, who knows?'
Say ''
Say 'Press Enter to continue:'
Parse Pull junk
Call SysSyncDisk
Say 'Next, we will call SysReboot, which performs an orderly shutdown'
Say 'and performs a reboot. If DOS.SYS is not loaded, you will not'
Say 'reboot. See RC for the reason.'
Say ''
Say 'Press Enter to continue:'
Parse Pull junk
Say 'Goodbye...'
Call SysReboot