This article describes a widely spread online batch processing of "30 seconds to clear system spam". This article is written from the perspective of a newbie, even if you do not know a little about batch processing, you can also understand this article.
Let's talk about some basic commands used in this batch processing:
@: At the beginning of the command line, it indicates that the command line of this line is not displayed during running (only the current line can be affected );
Echo: The character after this command is displayed;
Echooff: indicates that the command line itself is not displayed for all running commands after this statement;
DEL: delete/F: Force delete/S: delete the files in the current folder and all its subfolders/Q: confirmation is not required;
RD: a command to delete sub-directories;
MD: Create a folder;
Pause: running this command will pause the execution of batch processing, and display a prompt of pressanykeytocontinue... on the screen, waiting for the user to press any key to continue.
Representation of several system variables:
"% Systemdrive % \" refers to the disk directory where your system is located. If your system is attached to disk C, "% systemdrive % \" is equivalent to "C :\";
% WINDIR % = % SystemRoot % = c: \ directory of the system currently started by windows;
% USERPROFILE % = c: \ documentsandsettings \ current user data variable in the current user folder.
Well, if everything above is clear, then the following is easy to understand.
@ Echooff (Subsequent commands and current command lines are not displayed)
ECHO is clearing the system spam file. Please wait... (the screen shows "The system spam file is being cleared. Please wait ......")
Del/f/S/Q % systemdrive % \ *. tmp (forcibly delete the file whose name is. tmp in the root directory of the disk)
Del/f/S/Q % systemdrive % \ *. _ mp (forcibly delete the file whose name is. _ MP in the root directory of the disk)
Del/f/S/Q % systemdrive % \ *. Log (forcibly delete the file whose name is. log in the root directory of the disk)
Del/f/S/Q % systemdrive % \ *. GID (forcibly delete the file with the. GID extension in the root directory of the disk)
Del/f/S/Q % systemdrive % \ *. Chk (forcibly delete files with the. Chk extension in the root directory of the disk)
Del/f/S/Q % systemdrive % \ *. Old (forcibly delete the file whose name is. Old in the root directory of the disk)
Del/f/S/Q % systemdrive % \ recycled \ *. * (clear the recycle bin. If the recycle bin is cleared, this statement is useless)
Del/f/S/Q % WinDir % \ *. Bak (forcibly delete the file with the. Bak extension in the directory of the currently started System)
Del/f/S/Q % WinDir % \ prefetch \ *. * (forcibly delete all files in the prefetch folder in the directory of the currently started System)
RD/S/Q % WINDIR % \ Temp & MD % WINDIR % \ Temp (delete the temp folder in the system and create a new temp folder)
Del/f/Q % USERPROFILE % \ cookies \ *. * (delete all files in the cookies folder of the current user folder)
Del/f/Q % USERPROFILE % \ recent \ *. * (delete all files in the recent folder of the current user folder)
Del/f/S/Q "% USERPROFILE % \ localsettings \ temporaryinternetfiles \ *. *" (delete all files in localsettings \ temporaryinternetfiles \ Of the current user folder)
Del/f/S/Q "% USERPROFILE % \ localsettings \ temp \ *. *" (delete the local folder of the current user
All files in Settings \ temp)
Del/f/S/Q "% USERPROFILE % \ recent \ *. *" (delete all files in the recent folder of the current user folder)
Echo cleared system garbage! (The screen shows "The system has been cleared !")
Echo. & pause ("pressanykeytocontinue..." is displayed on the screen) Note: ECHO is used to display a blank line on the screen.
Transferred from: Pacific