1159b3361Sopenharmony_ci@echo off
2159b3361Sopenharmony_cirem  ---------------------------------------------
3159b3361Sopenharmony_cirem  PURPOSE:
4159b3361Sopenharmony_cirem  - put this Batch-Command on your Desktop, 
5159b3361Sopenharmony_cirem    so you can drag and drop wave files on it
6159b3361Sopenharmony_cirem    and LAME will encode them to mp3 format.
7159b3361Sopenharmony_cirem  - put this Batch-Command in a place mentioned
8159b3361Sopenharmony_cirem    in your PATH environment, start the DOS-BOX
9159b3361Sopenharmony_cirem    and change to a directory where your wave 
10159b3361Sopenharmony_cirem    files are located. the following line will
11159b3361Sopenharmony_cirem    encode all your wave files to mp3
12159b3361Sopenharmony_cirem     "lame.bat *.wav"
13159b3361Sopenharmony_cirem  ---------------------------------------------
14159b3361Sopenharmony_cirem                         C2000  Robert Hegemann
15159b3361Sopenharmony_cirem  ---------------------------------------------
16159b3361Sopenharmony_cirem  Changes to support long filenames using 4DOS
17159b3361Sopenharmony_cirem  by Alexander Stumpf <dropdachalupa@gmx.net>
18159b3361Sopenharmony_cirem  ---------------------------------------------
19159b3361Sopenharmony_cirem  please set LAME and LAMEOPTS
20159b3361Sopenharmony_cirem  LAME - where the executeable is
21159b3361Sopenharmony_cirem  OPTS - options you like LAME to use
22159b3361Sopenharmony_ci
23159b3361Sopenharmony_ci        set LAME=c:\progra~1\sound&~1\lame\lame.exe
24159b3361Sopenharmony_ci        set OPTS=-h --lowpass-width 2 --lowpass 20.5 -b 112 --abr 180
25159b3361Sopenharmony_ci
26159b3361Sopenharmony_cirem  ---------------------------------------------
27159b3361Sopenharmony_ci
28159b3361Sopenharmony_ci	set thecmd=%LAME% %OPTS%
29159b3361Sopenharmony_ci        for %%f in (%&) do (%thecmd% %@sfn[%%f]^(ren %@sfn[%%f].mp3 "%@lfn[%%f].mp_">NUL))
30159b3361Sopenharmony_ci        ren *.mp3.mp_ *.new.mp3 >& NUL
31159b3361Sopenharmony_ci        ren *.wav.mp_ *.mp3 >& NUL
32159b3361Sopenharmony_ci        goto endmark
33159b3361Sopenharmony_ci:errormark
34159b3361Sopenharmony_ci	echo.
35159b3361Sopenharmony_ci	echo.
36159b3361Sopenharmony_ci	echo ERROR processing %1
37159b3361Sopenharmony_ci	echo. 
38159b3361Sopenharmony_ci:endmark
39159b3361Sopenharmony_cirem
40159b3361Sopenharmony_cirem	finished
41159b3361Sopenharmony_cirem
42