Windows 10 is here, and it offers better speed and performance than its predecessors, according to Microsoft. But we all know that all those goodness is going to slack off over the time unless we keep it optimized. At first, the system seems blazing fast, then after a while it starts acting weird now and then – we all been there before, haven’t we? If your computer is running slow, in most cases, the real culprit would be the temp files that are piling up in your temp folder.
Windows programs and the operating system itself create temp files as they run. These are usually generated to store some specific data that would help when an application runs certain tasks, or to free up the memory for other functions. As the term implies, the temporary files are only required temporarily. These files normally get removed automatically when you close the applications, but if they get closed all of a sudden, there is a good chance that temp files may get stuck in there. Sometimes the programs leave unwanted temp files on the storage device because of an improperly written program code and improper shutdowns. As time passes, these temporary files pile up, resulting in wastage of storage space, at times, hampering computer performance. These files may create conflict with the software installation, and it can even affect some applications as they try to run. If your windows 10 powered desktop or laptop running slow, deleting piled up temp files may help to speed up your computer. Of course, like you did in Windows 7 and Windows 8, here also you can manually remove them right from the Windows temp folder.
If you don’t want to do it manually, a lot of PC Cleaner applications are available that will do the job for you. These applications can find down all the temporary files on your storage drive and rub them out in a flash. To delete them, you can also make use of the Disk cleanup, a Windows disk cleanup utility that comes with the operating system itself. It will show how much storage space is being consumed by these files and let you delete them, including temporary internet files, setup log files, downloaded program files, offline web pages and other temporary files. But this Windows cleanup utility will only let you delete them if they are over a week old. The good news is you can overcome this limitation by creating a simple batch file that can delete temporary files in one fell swoop. On top of that, you can also use this batch file to automate the whole process for you at every startup.
How to create Batch file to delete temp files quickly on Windows 10
To create the batch file, first off, open the Notepad application and type the following code:
rmdir /S /Q Temp
Then save the file as cleantemp.bat. Once the .bat file is created, you can double click it to remove the temporary files and make your computer faster. If the above code doesn’t work and comes up with an error, try substituting %username% with your windows username.
How to delete temporary files automatically at Windows 10 startup
To delete them at startup, just right click the .bat file you just created and select create the shortcut from the context menu that appears, which will create a shortcut icon of the.bat file. Now you have to copy that shortcut icon, navigate to following locations and paste the shortcut within Windows 10 Startup folders.
That’s it! Now onward, whenever you log in, the operating system will clear the temp files folder.
Maybe deleting temporary files would not bring back any miracle performance, but it’s always a good thing to clear these leftovers once in a while from eating up your system resource.