home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
coders
/
jËzyki_programowania
/
amigae
/
e_v3.2a
/
tools
/
ee
/
rexx
/
opennew.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1977-12-31
|
418b
|
28 lines
/* EE OpenNew - Open EE window and load arg <filename> */
ADDRESS COMMAND
OPTIONS FAILAT 10
PARSE ARG filename .
/* Start EE and/or wait for it's port to become registered. */
IF ~Show(PORTS, 'EE.0') THEN DO
'Run E:bin/EE'
notRunning=1
END
DO WHILE ~Show(PORTS, 'EE.0')
CALL Delay(50)
END
ADDRESS 'EE.0'
OPTIONS RESULTS
LockWindow
IF notRunning=1 THEN
Open filename
ELSE
OpenNew filename
UnlockWindow