Windows junk file cleanup
Definition of junk files
1. Temporary files generated during software installation
When installing many software, first extract the installation file to a temporary directory (usually the temp directory under the Windows folder), such as WinZip and other tools, and then install them. If the software design is neglected or the system is faulty, after the installation is complete, these temporary files become non-"temporary" and become a pile of garbage in the hard disk.
Some temporary exchange files are usually generated during the running of the software, such *. old ,*. bak backup files, backup files generated when anti-virus software or system software checks the hard disk.
2. files left after software uninstallation
Most of Windows software uses dynamic link libraries (DLL), and some software design is not very mature. As a result, after many software are uninstalled, some folders ,*. DLL file ,*. HLP files, registry key values, and all kinds of unknown things become real junk.
3. Temporary files generated by surfing the internet
When surfing the Internet, the browser downloads some web files to a local machine, which not only occupies valuable disk space, but also makes personal privacy public. In addition, files such as history, temporary cache files, and cookies are generated.
How to delete junk files
The garbage generated during Windows Installation and use includes temporary files (for example *. TMP ,*. _ MP, etc.), temporary backup files (such *. bak ,*. old ,*. and temporary help files (*. GID), disk check data files (*. chk) and *. dir ,*. DMP ,*. other temporary files such as NCH. You can use the system's "Search" function to find and delete these "spam" from the hard disk. Method: Right-click these files and choose delete from the shortcut menu. The temporary Folders "C:/Temp" and "c:/Windows/Temp" are also breeding grounds for "garbage". They store temporary files and can be deleted with caution.
Note:
The following is a bat file for cleanup of junk files (for reference only)
@ Echo off
ECHO is clearing the System junk file. Please wait ......
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 % WINDIR %/*. Bak
Del/f/S/Q % WINDIR %/prefetch /*.*
RD/S/Q % WINDIR %/temp & MD % WINDIR %/temp
Del/f/Q % USERPROFILE %/cookies S /*.*
Del/f/Q % USERPROFILE %/recent /*.*
Del/f/S/Q "% USERPROFILE %/Local Settings/Temporary Internet Files /*.*"
Del/f/S/Q "% USERPROFILE %/Local Settings/temp /*.*"
Del/f/S/Q "% USERPROFILE %/recent /*.*"
SFC/purgecache 'clear useless files on the system disk
Defrag % systemdrive %-B 'optimized pre-read information
Echo system LJ cleared!
Echo. & pause