Do you come across a situation wherein you are out of space in your PC/machine ? You wonder that your PC does not have many applications and your favorite machine has way less free space than what you anticipate. If Yes, then you are at right place and about to read right article.
Before providing solution to the problem, let's understand why this happens at the first place. Any application or tool create temp file each time it is been used. These temp files get stored in Temp folder under Windows/System folder. Till the time you don't remove it manually, it remains there and eats up the space.
Internet is a huge source of information but every time you browse, the webpage create temporary internet files in you C drive. These files consume lots of MB's in your PC.
For every activity you perform on your machine, unknowingly you create unwanted files.
Question is, Do you need to perform cleaning task every time and will it be manual? Here is the good news, by using below code in notepad, this manual process will be an automatic junk cleaner process. Do not forget to subscribe to my blog and get such Tips and Tricks directly in your inbox.
Below are the steps to do :
Step 1 : Open Notepad
Step 2 : Copy and Paste below code in Notepad
REM Cleanup files for Windows 7
REM Cleanup cookies for current user
REM Cleanup temp directory for current user
del /s /f /q "%USERPROFILE%"locals~1temp*
rmdir /s /q "%USERPROFILE%"locals~1temp
REM Cleanup temporary internet file directories for current user
del /s /f /q "%USERPROFILE%"locals~1tempor~1*
del /s /f /q /a:s "%USERPROFILE%"locals~1tempor~1*
del /s /f /q /a:h "%USERPROFILE%"locals~1tempor~1*
del /s /f /q /a:r "%USERPROFILE%"locals~1tempor~1*
rmdir /s /q "%USERPROFILE%"locals~1tempor~1
REM Cleanup history for current user
del /s /f /q "%USERPROFILE%"locals~1history*
REM Cleanup Windows prefetch
del /s /f /q "%SystemRoot%"prefetch*
REM Cleanup Windows minidump
del /s /f /q "%SystemRoot%"Minidump*
REM Cleanup Windows temp
del /s /f /q "%SystemRoot%"temp*
rmdir /s /q "%SystemRoot%"temp
REM Cleanup recent shortcuts for current user
del /s /f /q "%USERPROFILE%"recent*
REM Cleanup environment varable set temp storage
del /s /f /q "%TEMP%"
REM Cleanup environment varable set tmp storage
del /s /f /q "%TMP%"
REM Cleanup c:temp
del /s /f /q c:temp*
rmdir /s /q c:temp
REM Cleanup Recycle Bin storage areas
del /s /f /q c:Recycled*
del /s /f /q c:Recycler*
Step 3 : Save this file as Clean.bat and place on your desktop.
Step 4 : Pin this file to Startup folder in program section (can avoid this step)
Step 5 : You are all set done. Clean.bat file once double clicked will open a program which will clean your temp files automatically. Every time, you open your PC, double click the file and the work is done.