WinXP method to remove system garbage code

  
                

Our system will leave some system garbage during use, so we have to clean up the system garbage. Most people should clean up the system garbage by software. Users who use the WinXP system, every time he cleans up the system garbage, it is cleaned up by software, which is very troublesome. Is there a way to quickly clean up system garbage? Then let's talk about the way WinXP removes system garbage.

The steps are as follows:

1. On the desktop " Start & rdquo; - "All Programs - "Accessories -" opens & ldquo; Notepad & rdquo;.

2. Create a new Notepad file.

3, copy the batch code below the two dotted lines directly into Notepad,

@echo off

echo is clearing the system junk files, please Wait a moment. . . . . .

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%\ ecycled\\*.*

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%\ ecent\\*.*

del /f /s /q “%userprofile%\\Local Settings\\Temporary Internet Files\\*.*”

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

del /f /s /q “%userprofile%\ ecent\\*.*”

Echo system garbage removal is complete!

echo. & pause

Tip 1:

Don't write, you might write wrong, just copy it.

Tip 2:

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

This code is to clean up the recycle bin, judge itself, if not Need to clean the recycle bin (effective in FAT32 format), you can remove this line.

Tip 3:

del /f /q %userprofile%\\cookies\\*.* This line is to clean up the web form and login password. If you don't want to clear the login password, You can delete this line.

4. Under the “Files” menu, select “Save” or “Save ”.

5, (a), first enter a custom file name in the file name box. For example, the system cleans up the batch code .bat”, note that the extension should be bat.

(2), save the file type selection & ldquo; all files & rdquo;.

(3), execute “Save”.

6. Finally, of course, use this batch file, double-click this “ system to clean up the batch code.bat”, start cleaning up, after cleaning up, prompt “ press any key to continue. . . ”, close the window directly or press any key to end.

In summary: WinXP method to remove system garbage is introduced here, it is very simple to read! With this method, there is no need to clean up system garbage through any software in the future. Is it very convenient and fast! Then hesitate, try the above method! This method is suitable for all versions of the system.

Copyright © Windows knowledge All Rights Reserved