zoukankan      html  css  js  c++  java
  • 自制垃圾批处理软件


    自编处理软件,打开记事本,将以下内容复制到文本框保存,保存类型为所有文件,所有文件,名字为垃圾处理.bat.点bat很重要不然没有用,感觉比360什么的好多了。代码在下面。


    cls
    @echo off
    echo 系统垃圾清理
    echo 包括IE,软件等等
    echo Loading...
    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%*.syd
    del /f /s /q %systemdrive% ecycled*.*
    del /f /s /q %windir%*.bak
    echo 清理IE文件,软件等等
    del /f /s /q %windir%prefetch*.*
    rd /s /q %windir% emp & md %windir% emp  
    del /f /s /q %windir% emp*.*
    del /f /s /q "%appdata%MicrosoftWindowscookies*.*"
    del /f /q %userprofile% ecent*.*
    del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"
    del /f /s /q "%userprofile%AppDataLocalMicrosoftWindowsTemporary Internet Files*.*"
    del /f /s /q  "%userprofile%Local SettingsTemp*.*"
    del /f /s /q "%userprofile% ecent*.*"
    del /f /s /q %windir%SoftwareDistributionDownload*.*
    del /f /s /q "%appdata%MicrosoftWindowsRecent*.*"
    rd /s /q "%userprofile%Local SettingsTemp" & md "%userprofile%Local SettingsTemp"
    del /f /s /q "%userprofile%Application DataPPStream*.*"
    del /f /s /q "%userprofile%AppDataRoamingPPStream*.*"
    del /f /s /q "%userprofile%AppDataRoamingTheWorlddata*.*"
    del /f /s /q "%userprofile%Application DataPPLive*.*"
    del /f /s /q "%userprofile%AppDataRoamingPPLive*.*"
    del /f /s /q "%userprofile%AppDataLocalMicrosoftWindowsExplorer*.*"
    del /f /s /q "%windir%Offline Web Pages*.*
    del /f /s /q "%userprofile%UpdateData*.*"
    del /f /s /q "%userprofile%Application DataQQUpdate*.*"
    del /f /s /q "%ProgFile%Thunder NetworkThunderProgramUpdate*.*"
    rd /s /q "%ProgramFiles%TencentQQGameDownload"
    del /a /f /s /q "%ProgramFiles%Kaspersky Lab*.tmp"
    del /a /f /s /q "%HOMEDRIVE%UsersPublicRecorded TV*.*"
    del /a /f /s /q "%HOMEDRIVE%UsersPublicPictures*.*"
    del /a /f /s /q "%HOMEDRIVE%UsersPublicMusic*.*"
    del /a /f /s /q "%HOMEDRIVE%UsersPublicVideos*.*"
    del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataPPLive*.*"
    rd /s /q "%systemdrive%Documents and SettingsAll UsersApplication Data hunder_vod_cache"
    del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication Data hunder_dctemp*.*"
    del /f /s /q "%systemdrive%Documents and SettingsApplication DataKaspersky LabAVP8Data*.*"
    del /a /f /s /q "%HOMEDRIVE%pragramdataAll UsersApplication DataKaspersky LabAVP8*.*"
    del /f /s /q "%userprofile%AppDataLocalMicrosoftWindows Photo GalleryOriginal Images*.*"
    del /f /s /q "%userprofile%AppDataRoamingKingsoftKavRep*.*"
    del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataKingsoftKavRep*.*"
    del /f /s /q "%userprofile%AppDataRoamingKingsoftoffice6ackup*"
    del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataMicrosoftSearch*.*"
    del /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataMicrosoftWindows DefenderBackup*.*"
    del /f /s /q "%ProgramFiles%Microsoft Security EssentialsBackup*.*"
    del /a /f /s /q "%userprofile%Application DataSogouPYsgim_ext.bin"
    del /f /s /q "%userprofile%AppDataLocalLowSogouPYsgim_ext.bin"
    del /a /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataMicrosoftMicrosoft AntimalwareLocalCopy*.*"  
    del /a /f /s /q "%systemdrive%Documents and SettingsAll UsersApplication DataMicrosoftWindows DefenderLocalCopy*.*"
    del /a /f /s /q "%HOMEDRIVE%UsersPublicThunder NetworkThunder_A30B0AF7-D81B-464e-B4E4-4B6DF996FB46_*.*"
    del /a /f /s /q "%HOMEDRIVE%UsersPublicThunder Network hunder_DEF2CF18-A4A5-468A-ADE3-B410C49964BC_Temp*.*"
    del /a /f /s /q "%HOMEDRIVE%UsersPublicThunder NetworkThunder_xmp*.*"
    del /a /f /q "%SystemDrive%WINDOWSTasksSogouImeMgr.job"
    exit

  • 相关阅读:
    Windows上安装PyV8
    Windows鼠标右键菜单添加SublimeText打开选项
    Windows使用Python虚拟环境
    Windows同时安装Python2和Python3
    Windows使用Cmder
    Visual Studio Code配置
    Windows 10使用Tesseract-OCR出现WindowsError: [Error 2]
    用pymysql代替MySQLdb
    使用python来搞定redis的订阅功能
    来写一个最基本的装饰器吧!
  • 原文地址:https://www.cnblogs.com/BK-12345/p/5202697.html
Copyright © 2011-2022 走看看