Advertisement
Guest User

Untitled

a guest
Jun 13th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. CD /D D:\docs\programs
  2. SET chver=0
  3. DEL LAST_CHANGE
  4. wget --quiet http://commondatastorage.googleapis.com/chromium-browser-snapshots/Win/LAST_CHANGE > nul
  5. set /p chver=< LAST_CHANGE
  6. wget -O "D:\docs\programs\chrome-win32.zip" http://commondatastorage.googleapis.com/chromium-browser-snapshots/Win/%chver%/chrome-win32.zip
  7. SETLOCAL ENABLEEXTENSIONS
  8. CD /D D:\docs\programs
  9. FOR %%X IN (*.zip) DO (
  10. 7z x -aoa -o"D:\docs\programs\" "%%X" | FIND "Everything is Ok" >nul
  11. IF ERRORLEVEL 1 (
  12. ECHO.ERROR EXTRACTING "%%X"
  13. ) ELSE (
  14. DEL "%%X"
  15. )
  16. )
  17. DEL LAST_CHANGE
  18. ENDLOCAL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement