home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 29 Fixes_o
/
29-Fixes_o.zip
/
wr07060a.zip
/
US7060B2.DSK
/
LCU
/
LCU.ZIP
/
CASCKREX.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-04-05
|
1KB
|
43 lines
/* CASCKREX 2.0 */
/* This procedure checks to see if REXX is intialized */
/* Return values: */
/* */
/* 0 = REXX was initialized successfully */
/* 1 = REXX was not initialized */
parse UPPER ARG type rest
arc = RxFuncDrop('AskRemoveDiskIfFloppy')
arc = RxFuncAdd('AskRemoveDiskIfFloppy', 'CASAGENT', 'ASKREMOVEDISKIFFLOPPY')
/* Loop until function gets registered */
if arc <> 0 then do
dot = 0
dot_frequency = 1000
Do i = 1 to 10000 Until arc = 0
arc = RxFuncAdd('AskRemoveDiskIfFloppy', 'CASAGENT', 'ASKREMOVEDISKIFFLOPPY')
if trunc(i / dot_frequency) = dot then do
rc = charout(,'. ')
dot = dot + 1
end
End
say " "
end
If arc = 0 then do
if type <> 'CASAGENT' then
say 'REXX is initialized'
return (0)
end
else do
if type <> 'CASAGENT' then
say 'REXX is not initialzied'
return(1)
end
exit