The source code for batch processing is as follows: System spam. bat
| The code is as follows: |
Copy code |
@ Echo off Echo is clearing the system junk file. Please wait ...... Del/f/s/q "% USERPROFILE % Local SettingsTemporary Internet Files *.*" Del/f/q "% USERPROFILE % cookies *.* @ Echo user IE browser cache-cleared! Rd/s/q "% USERPROFILE % Local SettingsApplication DataMozilla" @ Echo Firefox browser cache-cleared! Rd/s/q "% WINDIR % SoftwareDistributionDownload" Rd/s/q "% WINDIR % ie8updates" Rd/s/q "% USERPROFILE % Local SettingsTemp" @ Echo: The TEMP temporary file has been cleared! @ Echo delete the patch backup directory Rd/s/q "% WINDIR % $ hf_mig $" Echo saves the name of the patch folder to dellist.txt Dir "% WINDIR % $ NtUninstall *"/a: d/B> "export windir#dellist.txt" Echo reads the folder list from dellist.txt and deletes the folder For/f % I in (%WINDIR%dellist.txt) do rd/s/q "% WINDIR % I" @ Echo delete dellist.txt Del/f/q %WINDIR%dellist.txt @ Echo is clearing the system junk files. 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 *.* Del/f/q % userprofile % recent *.* Echo system spam cleared! Echo. & pause |
The content in the box is saved as a. bat file. Double-click to execute the task.