Advertisement
Shyboy

%y-%mo-%d_%h-%mi-%s

Nov 30th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. @if %1x==x @(
  2. echo.
  3. echo Hello! Please don't double-click me.
  4. echo Instead, drag and drop a file or a directory to transcode.
  5. echo.
  6. pause
  7. goto :eof
  8. )
  9.  
  10. "%~dp0programs\setbatpriority.exe" low
  11.  
  12. @for %%i in ("%~dp0programs\auto5.bat") do @set AUTOHARD=%%~si
  13. :startenc
  14. @set AHSFILEATTR=%~a1
  15. @set AHSFILEDIR=%AHSFILEATTR:~0,1%
  16. @if "%AHSFILEDIR%" == "d" goto dirmode
  17.  
  18. :filemode
  19. call "%AUTOHARD%" "%~dps1%~nx1" bluray
  20. @goto :nextenc
  21.  
  22. :dirmode
  23. @for %%a in ("%~s1\*.mkv") do call "%AUTOHARD%" "%%a" bluray
  24.  
  25. :nextenc
  26. @shift /1
  27. @if not %1x==x @goto :startenc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement