home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
SYS
/
Rexx
/
openopuswindow.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-08-21
|
990b
|
55 lines
/* Opens a window in DirOpus 5 */
parse arg path ":" app
ports=show('P')
found=index(ports,'DOPUS.')
if found=0 then do
if exists("DOpus5:DirectoryOpus") then do
address command "DOpus5:DirectoryOpus"
do i=1 until found~=0 | i=15
ports=show('P')
found=index(ports,'DOPUS.')
if found=0 then
address command "Wait 1 SECS"
end
end
end
if found>0 then do
found2=index(ports,' ',found)
if found2>0 then
portname=substr(ports,found,found2-found)
else
portname=substr(ports,found)
end
else do
address command
":C/MetaTool :Index/bricks/error-nodiropus TEXT"
exit 10
end
if path=="-" then do
if open(fh,":Index/infos/"||app||".path","r") then do
path=readch(fh,256)
path=left(path,length(path)-1)
call close(fh)
end
else do
address command
":C/MetaTool :Index/bricks/error-internal TEXT"
exit 10
end
end
address value portname
options results
lister new "Meeting_Pearls_III:"||path
handle=result
/*lister set handle icons*/
dopus front
exit 0