• 自制垃圾批处理软件



    自编处理软件,打开记事本,将以下内容复制到文本框保存,保存类型为所有文件,所有文件,名字为垃圾处理.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

  • 相关阅读:
    Python 描述符(descriptor) 杂记
    Celery 使用简介
    异步任务神器 Celery 简明笔记
    高性能框架gevent和gunicorn在web上的应用及性能测试
    Flask + Gunicorn + Nginx 部署
    Mysql查看最大连接数和修改最大连接数
    配置 influxDB 鉴权及 HTTP API 写数据的方法
    Java 字符串拼接 五种方法的性能比较分析 从执行100次到90万次
    linux端口开放指定端口的两种方法
    java自带的监控工具VisualVM一
  • 原文地址:https://www.cnblogs.com/BK-12345/p/5202697.html
Copyright © 2020-2023  润新知