home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
dragen1.zip
/
mp3.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
2000-01-09
|
1KB
|
43 lines
/*mp3*/
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
parse arg mplay
echo off
getstr="del temp.mp3"
getstr
do while lines(mp3.var)
buffer=linein(mp3.var)
mfile=linein(mp3.var)
getstr= "start /c /min get2 -g "mfile
getstr
getstr="cls"
getstr
say "Dragen FTP copyright (c) 2000, Keith Cotroneo"
count=0
do until nfile.0 = "1"
Call Syssleep 2
getstr="cls"
getstr
say "Dragen FTP copyright (c) 2000, Keith Cotroneo"
call SysFileTree 'temp.mp3', 'nfile', 'F'
count=count+2
say ""
say "Attempting to connect..... taking "count" seconds so far."
end
say "Connection established, delaying for "buffer" seconds to build buffer...."
Call Syssleep buffer
say "Buffering completed...."
say ""
say "Starting playback using "mplay
say ""
say "Dragen FTP is designed to interface with external mp3 players."
say "The basic mp3 player included with Dragen FTP is provided courtesy"
say "of Samuel Audet, to obtain a fully developed PM player for OS/2,"
say "visit Samuel's page at http://www.cam.org/~guardia."
say ""
getstr=mplay" temp.mp3"
getstr
end