home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rxtools.zip
/
mp3list
/
names.bat
< prev
next >
Wrap
DOS Batch File
|
1999-03-13
|
1KB
|
40 lines
/* .mp3 files header extractor (PCDOS 7.0 REXX) */
temp='C:\TEMP\'
out='C:\MP3\'
i = 0
parse arg fname .
if strip(fname) \= '' then do
'cls'
call lineout , '
Getting files list...
'
'dir *.mp3 |grep -i "mp3 " >' temp||'MP3list.tmp'
do 1
call linein temp||'MP3list.tmp'
end
do while lines(temp||'MP3list.tmp') = 1
i=i+1
parse value linein(temp||'MP3list.tmp') with mpname.i ext size.i '.'rest
size.i=space(subword(size.i, 1, words(size.i)-1),0)
end
max=i
call lineout , '
Total number of .mp3 files:
' max '
'
call charout , '
Creating list file
' out||fname||'
:
'
do i=1 to max
name.i=charin(mpname.i||'.mp3', size.i-124, 123)
name.i=translate(name.i,'2020'x, 'FF00'x)
call lineout out||fname, strip(left(mpname.i||'.mp3', 12)||'09'x||name.i)
call charout ,'■'
call lineout(mpname.i||'.mp3')
end
end
else
say 'Please, enter list_file_name'