How to Delete Temp Files in Windows 7 Automatically

Temp Files are a very important feature of Windows Operating System. It is basically a Folder which is named as ‘Temp files’ stored in Windows Directory. This folder contains all the necessary information of programs and applications which use it for their start up and running. With this information available in applications, it takes lesser time to load. However it is recommended to cleanup temp files periodically to free up additional disk space. Follow this step by step guide to learn how to delete temp files in Windows 7 automatically at every startup.



Step # 1 – Enter the letter “Y” in a text file
In this tutorial of learning how to delete temp files in Windows 7 automatically, first of all go to the “Start Menu” and search for the “Notepad”. Now click on its icon to open it. Once you have opened the notepad, type in the letter “Y” from the keyboard and press Enter.
Type in the letter Y and Save it in a text file

Step # 2 – Save the Text File
In the next step, go to the “File” menu and select the “Save” option from the list. Now enter its name as “Yes.txt” and click on the “Save” button to save this file.
Save your text file

Step # 3 – Type in the Code
Once you have saved the text file, clear out the text and type in the following code in it.
“CD C:\Windows\
“Del *.*null”
“Exit”
Write the code

Step # 4 – Save the Code File
Now go to the “File” menu again and select the “Save as” option. Once done, choose its name as “Del_Temp.bat”, select the ‘Save as’ type as “All Files” and click on the “Save” button.
Save your text file with codes

Step # 5 – Copy the Code File in your Main Drive
In the next step, move both of these files to the main drive of your windows. Usually it the C:\Directory.
Move the code file in the main drive

Step # 4 – Create a Shortcut in Startup Folder
In the last step, create a shortcut of the “Del_Temp” file to the Desktop. Now open the “Startup” folder and copy the shortcut in it to cleanup temp files at every startup.
Make a shortcut in startup folder