home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
apilot.zip
/
APILOT.CMD
next >
Wrap
OS/2 REXX Batch file
|
1996-06-04
|
714b
|
29 lines
/* apilot.cmd */
/* Written by Kelley Cook */
call rxfuncadd 'sysloadfuncs', 'rexxutil', 'sysloadfuncs'
call sysloadfuncs
Fname="C:\CSERVE\OS2-CIM\OS2-CIM.INI"
do while stream(fname, c, 'query exists') = ''
say fname
say 'does not exist please enter complete path of os2-cim.ini'
pull fname
say ' '
end
/* query */
fBroom = SysIni( fname, "General Preferences", "Auto-Pilot" )
if Fbroom='ERROR:' then
say 'There was no Auto-Pilot Entry'
else
say 'Auto Pilot was set to ' fbroom
result = SysIni( fname, "General Preferences", "Auto-Pilot", 'ON'||'00'x )
if result = ''
then
say 'Auto-Pilot Successfully turned on'
else
say 'Unable to set autopilot'
exit 0