Windows system spam batch processing. bat process files

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.