home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ANews 2
/
AnewsCD2.iso
/
Script
/
jouer.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-10-11
|
677b
|
36 lines
/* Script Action Jouer */
parse arg type exe '"' filename '"'
type=upper(type)
say type
/* Selection du type de player */
if type="HIPPOPLAYER" then call HIP
if type="EAGLEPLAYER" then call EP
exit
/* Hippoplayer */
HIP:
if ~show(ports,'HIPPOPLAYER') then address command exe
hiploop:
call delay(25)
result = SHOW("p","HIPPOPLAYER")
if result=0 then signal hiploop
address 'HIPPOPLAYER'
ZIP 0
if pos(':', filename) ~= 0 then play filename
exit
/* EaglePlayer */
EP:
if ~show(ports,'rexx_EP') then address command 'WBRUN '||exe
eploop:
result = SHOW("p","rexx_EP")
if result=0 then signal eploop
address 'rexx_EP'
if pos(':', filename) ~= 0 then loadmodule filename
exit