home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Edition 19 / FreelogHS19.iso / MP3 / Audiograbber / lame-3.95.1 / misc / lame.bat < prev    next >
DOS Batch File  |  2003-01-01  |  1KB  |  42 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  - 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  please set LAME and LAMEOPTS
  17. rem  LAME - where the executeable is
  18. rem  OPTS - options you like LAME to use
  19.  
  20.     set LAME=lame.exe
  21.     set OPTS=--preset cd
  22.  
  23. rem  ---------------------------------------------
  24.  
  25.     set thecmd=%LAME% %OPTS%
  26.     lfnfor on
  27. :processArgs
  28.     if "%1"=="" goto endmark
  29.     for %%f in (%1) do %thecmd% "%%f"
  30.     if errorlevel 1 goto errormark
  31.     shift
  32.     goto processArgs
  33. :errormark
  34.     echo.
  35.     echo.
  36.     echo ERROR processing %1
  37.     echo. 
  38. :endmark
  39. rem
  40. rem    finished
  41. rem
  42.