The computer will inevitably experience performance degradation after long-term use, because the use of the application will produce a lot of disk fragment files and some temporary files or cache files, which will inevitably lead to a decline in disk utilization. In order to keep the computer running more smoothly, we need to regularly defragment the disk and clean up the junk files. Today our topic is to automate the cleaning and defragmentation of junk files.
The following batches can help us clean up temporary files and useless logs or backup files on the system.
del /f /s /q %systemdrive%*.tmpdel /f /s /q %systemdrive%*._mpdel /f /s /q %systemdrive%*.logdel /f /s /q % Systemdrive%*.giddel /f /s /q %systemdrive%*.chkdel /f /s /q %systemdrive%*.olddel /f /s /q %systemdrive%recycled*.*del /f /s /q % Windir%prefetch*.*rd /s /q %windir%temp & md %windir%tempdel /f /q %userprofile%cookies*.*del /f /q %userprofile%recent*.*del /f /s /q %userprofile%Local SettingsTemporary Internet Files*.*del /f /s /q %userprofile%Local SettingsTemp*.*del /f /s /q %userprofile%recent*.*
Clean up in the system After completion, we need to call the Defrag command to defragment the disk. For example, to defragment the C drive, we only need to execute:
C:>defrag c: -v -f > c:defrag.txt
The command is fine. The -f parameter means defragmentation if there is not enough disk space. The -v parameter refers to a detailed description of the sorted disk status results. Then I use the > symbol to redirect the results to a defrag.txt file for viewing.
With the above two command line disk cleanup and defragmentation, we can perform regular execution through the mission plan. Instead of using us to do it manually.
There is not enough free disk space, the game cannot be downloaded, the game cannot be installed, th
Recently, many users have turned to the problem of insufficient virtual memory of the computer. Many
How do I change the location of the temporary folder? [Utility Tips] When surfing the Internet with
In general, if the CPU accounts for 100%, our computer will always slow down, and in many ca
Internet often pops up the webpage solution (a)
How to prevent computer "sub-health"?
How to achieve fast booting of the computer
How to set a password for the computer _ computer various password setting skills (a)
How to remove the desktop icon with shadows _ How to remove the icon shadow (a)
Reasons for the failure to delete files and suggestions (1)
Computer boot music settings, teach you to set the switch music (1)
Use system information to diagnose whether the computer has a problem
Software use restriction cracking method (1)
How to start the boot strategy after the system crashes (1)
Win8 uses Bluetooth to connect to the phone. Step
Diskgenius how to rebuild the partition table
Win 10 system Aero Glass method
The new Win10 Mobile/PC preview version starts to push in 2017
Win10 Home Edition can't open the edge browser how to solve
Win7 system desktop right refresh response is very slow how to do
How does the Win7 system optimize the firewall function?
How to install software to other partitions in Win10 system