home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Sound / LAME / src / lame.bat < prev    next >
DOS Batch File  |  2000-07-29  |  1KB  |  46 lines

  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    NOTE: DOS has only 8+3 file names!
  8. rem    (if someone knows how to configure Windows
  9. rem     to hand over long file names with "drag 
  10. rem     and drop" to batch files, please tell me)
  11. rem  - put this Batch-Command in a place mentioned
  12. rem    in your PATH environment, start the DOS-BOX
  13. rem    and change to a directory where your wave 
  14. rem    files are located. the following line will
  15. rem    encode all your wave files to mp3
  16. rem     "lame.bat *.wav"
  17. rem  ---------------------------------------------
  18. rem                         C2000  Robert Hegemann
  19. rem                         Robert.Hegemann@gmx.de
  20. rem  ---------------------------------------------
  21. rem  please set LAME and LAMEOPTS
  22. rem  LAME - where the executeable is
  23. rem  OPTS - options you like LAME to use
  24.  
  25.     set LAME=lame.exe
  26.     set OPTS=--preset cd
  27.  
  28. rem  ---------------------------------------------
  29.  
  30.     set thecmd=%LAME% %OPTS%
  31.     lfnfor on
  32. :processArgs
  33.     if "%1"=="" goto endmark
  34.     for %%f in (%1) do %thecmd% %%f
  35.     if errorlevel 1 goto errormark
  36.     shift
  37.     goto processArgs
  38. :errormark
  39.     echo.
  40.     echo.
  41.     echo ERROR processing %1
  42.     echo. 
  43. :endmark
  44. rem
  45. rem    finished
  46. rem