home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ANews 2
/
AnewsCD2.iso
/
Script
/
ecoute.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-10-11
|
928b
|
55 lines
/* Script Action Ecoute */
options results
parse arg type ' ' exe ' "' filename '"'
say exe
say type
say filename
type=upper(type)
/* Selection du type de player */
if type="SONGPLAYER" then call SP
if type="AMPLIFIER" then call AMP
if type="AMIGAAMP" then call AAMP
exit
SP:
if ~show('p','SONGPLAYER.1') then do
address command "run >NIL: "||exe||" GUI"
address command "waitforport SONGPLAYER.1"
end
if show('p','SONGPLAYER.1') then do
address SONGPLAYER.1
ADD '"'filename'"'
PLAY
end
exit
AMP:
if ~show('p','AMPLIFIER.1') then do
address command "run >NIL: "||exe
address command "waitforport AMPLIFIER.1"
end
if show('p','AMPLIFIER.1') then do
address AMPLIFIER.1
PLAY '"'filename'"'
end
exit
AAMP:
if ~show('p','AMIGAAMP') then do
address command "run >NIL: "||exe
address command "waitforport AMIGAAMP"
end
if show('p','AMIGAAMP') then do
address AmigaAMP
OPEN '"'filename'"'
end
exit