home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
thelp021.lzh
/
HELP001.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-04-18
|
891b
|
50 lines
@echo off
rem SCCSID = @(#)help.cmd 6.4 91/08/05
rem *
rem * Process HELP requests: verify specification of "ON" or "OFF"
rem *
rem * Modified by Colin Thomson for use with Thelp and Tshell.
rem *
rem * April 1994
rem *
if "%1" == "" goto msg
if "%1" == "on" goto yes
if "%1" == "off" goto no
if "%1" == "ON" goto yes
if "%1" == "OFF" goto no
if "%1" == "On" goto yes
if "%1" == "oN" goto yes
if "%1" == "OFf" goto no
if "%1" == "OfF" goto no
if "%1" == "Off" goto no
if "%1" == "oFF" goto no
if "%1" == "oFf" goto no
if "%1" == "ofF" goto no
helpsrt %1 %2
if errorlevel 1 goto got1
if errorlevel 0 goto got0
goto exit
:got1
helpmsg %1 %2
goto exit
:got0
if "%2" == "" goto args1
goto args2
goto exit
:args1
thelp 0 %1
goto exit
:args2
thelp %1 %2
goto exit
:msg
helpmsg
goto exit
:yes
prompt $i[$p]
goto exit
:no
cls
prompt
:exit