Batch file to cleanup unnecessary files in windows

simple tool for clean up n free your disk from temporary and unusable files, it’s made by kebo_gila the ccpb idol n distribute to me by kabayan, coz few minutes ago i have no idea about tools for clean up the rest of uninstallation data, so i ask him about this n then he told me to use cc cleaner and also he gave this tool to me, the code would be like this:

@echo off
echo cleaning unnecessary files and folder in windows


echo. & pause
del /f /s /q %systemdrive%*.tmp
del /f /s /q %systemdrive%*._mp
del /f /s /q %systemdrive%*.log
del /f /s /q %systemdrive%*.gid
del /f /s /q %systemdrive%*.chk
del /f /s /q %systemdrive%*.old
del /f /s /q %systemdrive%recycled*.*
del /f /s /q %systemdrive%Thumbs.db

rem —–this part only did once, u can delete this after execute
del /f /s /q %windir%system.ini
del /f /s /q %windir%ODBCINST.INI
del /f /s /q %windir%msdfmap.ini
del /f /s /q %windir%desktop.ini
del /f /s /q %windir%control.ini
del /f /s /q %windir%clock.avi
del /f /s /q %windir%bootstat.dat
rem —–delete limit
del /f /s /q %windir%_default
del /f /s /q %windir%*.bmp
del /f /s /q %windir%*.txt
del /f /s /q %windir%*.bak
del /f /s /q %windir%prefetch*.*
rd /s /q %windir%temp & md %windir%temp

del /f /q %userprofile%cookies*.*
del /f /q %userprofile%recent*.*
del /f /s /q “%userprofile%Local SettingsTemporary Internet Files*.*”
del /f /s /q “%userprofile%Local SettingsTemp*.*”
del /f /s /q “%userprofile%recent*.*”
echo Done.
echo. & pause

save as del.bat or anykind of name you want as long as it has .bat extension, then just double click the del.bat file to run this

Incoming search terms:

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment