Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for /f "delims=" %%n in ('%Apps%\mediainfo "--Inform=General;%%FileSize/String%%" "%Temp%\%output%\%dirname%.mkv"') do set size=%%n
- set rlssize=%size%
- if not "x%size:MiB=%" == "x%size%" goto mib
- if not "x%size:GiB=%" == "x%size%" goto gib
- :mib
- set rar=50000
- goto pack
- :gib
- echo %size%>>%temp%\%output%\%output%_rarfilesize.nfo
- %apps%\fart %temp%\%output%\%output%_rarfilesize.nfo " GiB" --remove
- for /f "tokens=1 delims=." %%i in ( %Temp%\%output%\%output%_rarfilesize.nfo ) do set size=%%i
- set /a rsize=%size% + 1
- if %rsize% LSS 29 set rar=300000
- if %rsize% LSS 24 ( set rar=250000 ) else ( goto pack )
- if %rsize% LSS 19 ( set rar=200000 ) else ( goto pack )
- if %rsize% LSS 14 ( set rar=150000 ) else ( goto pack )
- if %rsize% LSS 9 ( set rar=100000 ) else ( goto pack )
- if %rsize% LSS 4 ( set rar=50000 ) else ( goto pack )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement