Practical tips for Windows comes with Notepad (2)

  

There is a commonly used Notepad batch for clearing system junk files:

@echo off

echo is clearing system garbage 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*.*

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*.*”

echo clear system LJ finished !

echo. &pause

Copy the above code to Notepad, save as "Clear System Junk File.bat", and pay attention to the save type and select "All Files", and pay attention to the save type. Select "All Files", and then run the batch file, you can clear the accumulated junk files of the system, and clear it once every other day, you can release a lot of space, I remember the most one remembers more than 600MB. Some friends may be worried about whether this will be a system problem. I have used it many times. There is nothing unusual. Online google or baidu know that many people have done this.

Copyright © Windows knowledge All Rights Reserved