LAPINPT

MKVToolNix Updater

Jul 15th, 2013
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.65 KB | None | 0 0
  1. @ECHO OFF
  2.  
  3. TITLE MKVToolNix Updater by Lapinpt
  4. echo.
  5. echo Checking Version
  6.  
  7. wget -O- http://www.downloadbestsoft.com/MKVToolNix.html | sed -n "/.7z/p" | cut -d "/" -f3 | cut -d "7" -f1 | sed "s/.$//" > temp
  8. sed -n "/-/p" temp | cut -c20- > version
  9.  
  10. timeout 1 >NUL
  11.  
  12. set /p LINK= < temp
  13. set /p VER= < version
  14. echo.
  15. echo Current Version: %VER%
  16. del sed.exe cut.exe temp version
  17.  
  18. timeout 2 >NUL
  19.  
  20. echo.
  21. echo Downloading MKVToolNix
  22. wget -c -nv http://megui.xvidvideo.ru/auto/%LINK%.7z
  23. echo.
  24. echo Extracting MKVToolNix
  25. 7za x %LINK%.7z -o%VER% -y >NUL
  26.  
  27. timeout 2 >NUL
  28.  
  29. del *.7Z 7za.exe wget.exe
  30.  
  31. echo.
  32. echo Update Done!
  33. timeout 4 >NUL
  34. exit
Advertisement
Add Comment
Please, Sign In to add comment