Thursday 28 April 2016

Batch script to clear browsing history, download history, and empty the cache for Chrome.

@echo off
set ChromeDir=C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data
del /q /s /f "%ChromeDir%"
rd /s /q "%ChromeDir%"
cls
IF %ERRORLEVEL%==0 (
@echo "Success Message"
exit0
) ELSE (
@echo "Error Message"
exit 1001
)

No comments: