home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 March / Chip_2004-03_cd1.bin / zkuste / minidvd / download / lame / lame-3.93.1.exe / misc / lame.bat < prev    next >
DOS Batch File  |  2002-02-05  |  1KB  |  43 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                         Robert.Hegemann@gmx.de
  16. rem  ---------------------------------------------
  17. rem  please set LAME and LAMEOPTS
  18. rem  LAME - where the executeable is
  19. rem  OPTS - options you like LAME to use
  20.  
  21.     set LAME=lame.exe
  22.     set OPTS=--preset cd
  23.  
  24. rem  ---------------------------------------------
  25.  
  26.     set thecmd=%LAME% %OPTS%
  27.     lfnfor on
  28. :processArgs
  29.     if "%1"=="" goto endmark
  30.     for %%f in (%1) do %thecmd% "%%f"
  31.     if errorlevel 1 goto errormark
  32.     shift
  33.     goto processArgs
  34. :errormark
  35.     echo.
  36.     echo.
  37.     echo ERROR processing %1
  38.     echo. 
  39. :endmark
  40. rem
  41. rem    finished
  42. rem
  43.