Advertisement
Guest User

Untitled

a guest
May 27th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. setlocal EnableDelayedExpansion
  2. @if exist "%ProgramFiles(x86)%\Google\Update" @(
  3. @echo Cleaning Google Update...
  4. @rd /q /s "%ProgramFiles(x86)%\Google\Update\Download"
  5. @md "%ProgramFiles(x86)%\Google\Update\Download"
  6. @rd /q /s "%ProgramFiles(x86)%\Google\Update\Install"
  7. @md "%ProgramFiles(x86)%\Google\Update\Install"
  8. @echo Done.
  9. )
  10. @if exist "%LocalAppData%\Google\Update" @(
  11. @echo Cleaning Google Update app data...
  12. @rd /q /s "%LocalAppData%\Google\Update\Download"
  13. @md "%LocalAppData%\Google\Update\Download"
  14. @rd /q /s "%LocalAppData%\Google\Update\Install"
  15. @md "%LocalAppData%\Google\Update\Install"
  16. @echo Done.
  17. )
  18. REM Doesn't work because version numbers aren't necessarily the same length.
  19. REM @if exist "%ProgramFiles(x86)%\Google\Chrome" @(
  20. REM @echo Cleaning Google Chrome...
  21. REM @set v=0
  22. REM @for /f %%d in ('dir /B /A:D "%ProgramFiles(x86)%\Google\Chrome\Application" ^| findstr "[0-9].*\.[0-9].*\.[0-9].*\.[0-9]"') do @(
  23. REM @set /a v=!v!+1
  24. REM @if !v! equ 1 set old=%%d
  25. REM )
  26. REM @if !v! equ 2 rd /q /s "%ProgramFiles(x86)%\Google\Chrome\Application\!old!"
  27. REM @echo Done.
  28. REM )
  29. @exit /b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement