The world's most "green" system garbage cleanup tool

  

A lot of system garbage is generated every day in the system. When your system partition is inexplicably filled, what do you choose? …… is the installation optimization software to automatically clean up the system garbage? Or manually cleaned up according to the online tutorial? The former may cause system failure, and the software must be installed separately. The latter has technical thresholds and is cumbersome to operate. Open “Notepad”, write a few lines of batch processing! Immediately you will have the most “green” garbage cleaning tool in history.

The most common junk files wanted

In the junk files generated by daily use of Windows, which guys suddenly played the "important role"? (See the table below)


Extension Type Cause TMP/_MP Temporary File Generates LOG log file when installing software/software operation Software write/error when writing to hard disk GID Help Index Generated when using help system Temporary index CHK disk check file Unexpected restart when checking disk, system attempts to recover data OLD/BAK temporary backup file Temporary file generated during software installation/upgrade

OLD/BAK Temporary backup file software generated during installation/upgrade Temporary files

One minute to develop your own cleaning tools

Don't imagine the development software so mysterious. With the system's own batch processing, you can develop a cleaning tool in one minute. . Open “Notepad”, write the cleanup code according to the following rules, save the file name as “cleansys.bat”, the file name can be taken, but the extension must be “BAT”; Just run it.

@echo off

del /f /s /q %systemdrive%\\*.tmp

del /f /s /q %windir%\\*.bak< Br>

del /f /s /q "%userprofile%\\Local Settings\\Temp\\*.*"

Tip: Where “del /f /s /q” means delete All subdirectories include all files except read-only files, and do not require confirmation, "%systemdrive%", etc. are system variables, the system will identify and point to the correct directory.

Copyright © Windows knowledge All Rights Reserved