Deep system cleanup with a simple .bat batch file
Although Win10 has improved the Disk Cleanup feature, you can clean up most of the junk files created by Windows and daily use by right-clicking on the drive and selecting Properties.
However, there are some fixed folders (PerfLogs, Program Files/Program Files (x86), Windows and User folders) that are reserved for cleaning. So if you want a clean and fresh Win10 after the update, we still have to do it manually.
Create a new text document and copy the following code into it:
@echo off
del "%tmp%\*.*" /s /q /f
FOR /d %%p IN ("%tmp%\*.*" ) DO rmdir "%%p" /s /q
Then change the extension of the text file to .bat and double-click it to run it.
The difference between this code and the deep cleaning junk files that are prevalent on the Internet is that it will not move browser cookies (saved accounts and passwords) and will not interfere with the normal use of databases and other types of software.
In addition, if you want it to run automatically every time you turn on your computer, press WIN+R and then type
shell:Startup
Simply drop the finished batch into the pop-up folder.
As for wanting to clean up the registry, I still recommend professional things from professional software to do it, you can consider the Ccleaner class of products, the other will not talk about it.
Author: King
Copyright: PCSofter.COM
Permalink: https://pcsofter.com/guide/deep-system-cleanup-with-a-simple-bat-batch-file.html
Total 0 comment