lame4dos.bat 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. @echo off
  2. rem ---------------------------------------------
  3. rem PURPOSE:
  4. rem - put this Batch-Command on your Desktop,
  5. rem so you can drag and drop wave files on it
  6. rem and LAME will encode them to mp3 format.
  7. rem - put this Batch-Command in a place mentioned
  8. rem in your PATH environment, start the DOS-BOX
  9. rem and change to a directory where your wave
  10. rem files are located. the following line will
  11. rem encode all your wave files to mp3
  12. rem "lame.bat *.wav"
  13. rem ---------------------------------------------
  14. rem C2000 Robert Hegemann
  15. rem ---------------------------------------------
  16. rem Changes to support long filenames using 4DOS
  17. rem by Alexander Stumpf <dropdachalupa@gmx.net>
  18. rem ---------------------------------------------
  19. rem please set LAME and LAMEOPTS
  20. rem LAME - where the executeable is
  21. rem OPTS - options you like LAME to use
  22. set LAME=c:\progra~1\sound&~1\lame\lame.exe
  23. set OPTS=-h --lowpass-width 2 --lowpass 20.5 -b 112 --abr 180
  24. rem ---------------------------------------------
  25. set thecmd=%LAME% %OPTS%
  26. for %%f in (%&) do (%thecmd% %@sfn[%%f]^(ren %@sfn[%%f].mp3 "%@lfn[%%f].mp_">NUL))
  27. ren *.mp3.mp_ *.new.mp3 >& NUL
  28. ren *.wav.mp_ *.mp3 >& NUL
  29. goto endmark
  30. :errormark
  31. echo.
  32. echo.
  33. echo ERROR processing %1
  34. echo.
  35. :endmark
  36. rem
  37. rem finished
  38. rem