Here is an example of a batch file that can clean the Recycle Bin and Temporary files on a Windows system:
@echo off
echo Cleaning up Recycle Bin...
rd /s /q C:\$Recycle.bin
echo Cleaning up Temporary files...
del /f /s /q %TEMP%\*
echo Done!
To clean the browser history, you can add the following lines to the batch file:
echo Cleaning up browser history...
del /f /s /q "%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\History"
del /f /s /q "%USERPROFILE%\AppData\Local\Mozilla\Firefox\Profiles\*\places.sqlite"
del /f /s /q "%USERPROFILE%\AppData\Local\Microsoft\Edge\User Data\Default\History"
echo Done cleaning up browser history!
Save the file with a .bat
extension, such as cleanup.bat
, and run it by double-clicking on it. Keep in mind that this batch file is just an example and may not work for all systems. You may need to adjust the paths and file names to match your specific system.
Comments
Post a Comment