Guest User

Untitled

a guest
Jan 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. rem @echo off
  2.  
  3. ::set path for tssplitter
  4. set tssplitbin=D:\STools\TsSplitter\TsSplitter.exe
  5.  
  6. ::set outdir for stripped ts
  7. set tsoutdir=D:\StrippedTS
  8.  
  9. ::set logfile path
  10. set logfile=%CD%\mondir.log
  11.  
  12. ::main batch starts here
  13. ::
  14.  
  15. if [%1]==[] (
  16. echo Missing Input File
  17. goto :bad_exit
  18. )
  19.  
  20. echo Splitting %1
  21.  
  22. "%tssplitbin%" -EIT -SD -1SEG -OUT "%tsoutdir%" "%1"
  23.  
  24. if %ERRORLEVEL% EQU 0 (
  25. echo %DATE% %TIME%: Successfully Split %1 >> "%logfile%"
  26. goto :exit
  27. ) else (
  28. echo %DATE% %TIME%: Failed to Split %1 >> "%logfile%"
  29. goto :exit
  30. )
  31.  
  32. :exit
Add Comment
Please, Sign In to add comment