SHARE
TWEET

Untitled

a guest Dec 24th, 2014 343 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. : Batch
  2. @echo off
  3. SETLOCAL EnableExtensions EnableDelayedExpansion
  4.  
  5. if "%1" equ "" (
  6.     echo \"Syntax : %~0 <directory>\"
  7.     goto :eof
  8. )
  9. set inputpath=%1
  10.  
  11. : Config
  12. set program=srs.bat
  13.  
  14. :: Remove quotes
  15. SET inputpath=###%inputpath%###
  16. SET inputpath=%inputpath:"###=%
  17. SET inputpath=%inputpath:###"=%
  18. SET inputpath=%inputpath:###=%
  19.  
  20. : Core
  21. for /f "delims==" %%G in ('dir /b "%inputpath%\*.mp3"') do (
  22. "%program%" "%inputpath%\%%~nG.srs" "%inputpath%\%%~nG.mp3" -o %inputpath%\fixed\ -y
  23. )
  24.  
  25. :eof
RAW Paste Data
Top