Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setlocal EnableDelayedExpansion
- @if exist "%ProgramFiles(x86)%\Google\Update" @(
- @echo Cleaning Google Update...
- @rd /q /s "%ProgramFiles(x86)%\Google\Update\Download"
- @md "%ProgramFiles(x86)%\Google\Update\Download"
- @rd /q /s "%ProgramFiles(x86)%\Google\Update\Install"
- @md "%ProgramFiles(x86)%\Google\Update\Install"
- @echo Done.
- )
- @if exist "%LocalAppData%\Google\Update" @(
- @echo Cleaning Google Update app data...
- @rd /q /s "%LocalAppData%\Google\Update\Download"
- @md "%LocalAppData%\Google\Update\Download"
- @rd /q /s "%LocalAppData%\Google\Update\Install"
- @md "%LocalAppData%\Google\Update\Install"
- @echo Done.
- )
- REM Doesn't work because version numbers aren't necessarily the same length.
- REM @if exist "%ProgramFiles(x86)%\Google\Chrome" @(
- REM @echo Cleaning Google Chrome...
- REM @set v=0
- REM @for /f %%d in ('dir /B /A:D "%ProgramFiles(x86)%\Google\Chrome\Application" ^| findstr "[0-9].*\.[0-9].*\.[0-9].*\.[0-9]"') do @(
- REM @set /a v=!v!+1
- REM @if !v! equ 1 set old=%%d
- REM )
- REM @if !v! equ 2 rd /q /s "%ProgramFiles(x86)%\Google\Chrome\Application\!old!"
- REM @echo Done.
- REM )
- @exit /b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement