home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
ANWEND
/
PACKER
/
ZZ125
/
readhelp.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-08-19
|
1KB
|
47 lines
/* readhelp.cmd *
* Execute this file to read the ZipZap help file - zipzap.hlp *
* must be in the same directory as this command file. */
infchar = '01'x
hlpchar = '10'x
call RXFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
call SysLoadFuncs
filename = strip(zipzap.hlp)
fullname = stream(filename, 'c', 'query exists')
if fullname = '' then
do
say 'File : ' || filename || ' could not be located!'
SAY 'READHLP.CMD must be in the same directory as ZIPZAP.HLP to work correctly!'
SAY ''
SAY 'Press any key .....'
charIn()
return
end
result = stream(fullname, 'c', 'open write')
if left(result, 5) <> 'READY' then
do
say 'Error (' || result || ') opening file : ' || fullname || '!'
SAY ''
SAY 'Press any key .....'
charIn()
return
end
left = charout(fullname, infchar, 4)
clsd = stream(fullname, 'c', close)
'VIEW.EXE ' || fullname
do until left(result, 3) <> 'NOT'
call SysSleep 1
result = stream(fullname, 'c', 'open write')
end
fpos = charout(fullname, hlpchar, 4)
clsd = stream(fullname, 'c', 'close')
return