Advertisement
Gfy

srsr.bat

Gfy
Nov 18th, 2012
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.46 KB | None | 0 0
  1. @ECHO OFF
  2. SET srsapp=C:\Python27\python.exe d:\Dropbox\workspace-python\pyReScene\bin\srs
  3.  
  4. goto start
  5.  
  6. :srs
  7. SET gx=%1
  8. SET filename=%gx:~1,-5%
  9. SET extension=%gx:~-4,-1%
  10. FOR %%T in (%gx%) DO SET pathf=%%~pT
  11. %srsapp% %gx% -o %pathf% 2> "%filename%.%extension%.txt"
  12. IF EXIST "%filename%.srs" del "%filename%.%extension%.txt"
  13. echo Done %gx%
  14. goto eof
  15.  
  16. :start
  17. FOR /F "usebackq tokens=*" %%G IN (`dir /A:-D /B /S *.avi *.mkv *.mp4 *.wmv`) DO CALL :srs "%%G"
  18.  
  19. :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement