Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.82 KB | None | 0 0
  1. for /f "delims=" %%n in ('%Apps%\mediainfo "--Inform=General;%%FileSize/String%%" "%Temp%\%output%\%dirname%.mkv"') do set size=%%n
  2. set rlssize=%size%
  3. if not "x%size:MiB=%" == "x%size%" goto mib
  4. if not "x%size:GiB=%" == "x%size%" goto gib
  5. :mib
  6. set rar=50000
  7. goto pack
  8. :gib
  9. echo %size%>>%temp%\%output%\%output%_rarfilesize.nfo
  10. %apps%\fart %temp%\%output%\%output%_rarfilesize.nfo " GiB" --remove
  11. for /f "tokens=1 delims=." %%i in ( %Temp%\%output%\%output%_rarfilesize.nfo ) do set size=%%i
  12. set /a rsize=%size% + 1
  13. if %rsize% LSS 29 set rar=300000
  14. if %rsize% LSS 24 ( set rar=250000 ) else ( goto pack )
  15. if %rsize% LSS 19 ( set rar=200000 ) else ( goto pack )
  16. if %rsize% LSS 14 ( set rar=150000 ) else ( goto pack )
  17. if %rsize% LSS 9 ( set rar=100000 ) else ( goto pack )
  18. if %rsize% LSS 4 ( set rar=50000 ) else ( goto pack )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement