如何使用bat清理开机启动项
发表于:2025-11-15 作者:千家信息网编辑
千家信息网最后更新 2025年11月15日,这篇文章将为大家详细讲解有关如何使用bat清理开机启动项,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。代码如下:@echo off&setlocal enabled
千家信息网最后更新 2025年11月15日如何使用bat清理开机启动项
这篇文章将为大家详细讲解有关如何使用bat清理开机启动项,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
代码如下:
@echo off&setlocal enabledelayedexpansionmode con cols=61 lines=25&color f5mshta _vbscript:msgbox("在运行程序前,请确认所有编辑资料已经保存",,"自制优化系统")(window.close)if exist tem.txt del /f /q tem.txtecho.正在刷选进程.............echo>>tem.txt explorer.exeecho>>tem.txt System Idle Processecho>>tem.txt Systemecho>>tem.txt smss.exeecho>>tem.txt csrss.exeecho>>tem.txt winlogon.exeecho>>tem.txt services.exeecho>>tem.txt TheWorld.exeecho>>tem.txt lsass.exeecho>>tem.txt svchost.exeecho>>tem.txt spoolsv.exeecho>>tem.txt alg.exeecho>>tem.txt ctfmon.exeecho>>tem.txt ekrn.exeecho>>tem.txt wdfmgr.exeecho>>tem.txt 360tray.exeecho>>tem.txt egui.exeecho>>tem.txt wmiprvse.exeecho>>tem.txt QQ.exeecho>>tem.txt cmd.exeecho>>tem.txt IEXPLORE.EXEecho>>tem.txt TXPlatform.exeecho>>tem.txt tasklist.exeecho>>tem.txt conime.exeecho>>tem.txt safeboxTray.exeecho>>tem.txt Thunder5.exeecho>>tem.txt tudouva.exefor /f "eol= tokens=1,2 delims=," %%i in ('tasklist /nh /fo csv') do (findstr /i /x %%i tem.txt >nulif errorlevel 1 (taskkill /f /pid %%j 1>nul 2>nul))del tem.txt & echo 结束进程任务基本完成echo ======================================echo == ==echo ======================================echo 优化开机启动项del /f /s /q "%systemdrive%\Docume~1\All Users\「开始」菜单\程序\启动\*.*"del /f /s /q "%userprofile%\「开始」菜单\程序\启动\*.*"for /f "delims=\" %%j in ('fsutil fsinfo drives^|find /v ""') do (del /f /q "%%j\*.inf">nul 2>nul &del /f /q /ah "%%j\*.exe" 2>nul)echo>>tem.txt "egui"echo>>tem.txt "essact"echo>>tem.txt "CTFMON.EXE"set key=Software\Microsoft\Windows\CurrentVersion\runREG EXPORT "HKCU\%key%" a.reg /nt4>nulecho REGEDIT4 >b.regecho [HKEY_CURRENT_USER\%key%] >>b.regfor /f "skip=2 eol=[ tokens=1,2 delims==" %%a in (a.reg) do (findstr /i %%a tem.txt>nul||echo %%a=- >>b.reg)for /f "skip=2 delims=[" %%m in ('find /i "\run\" a.reg') do (echo ^[^-%%m >>b.reg)regedit /s b.regREG EXPORT "HKLM\%key%" a.reg /nt4>nulecho REGEDIT4 >b.regecho [HKEY_LOCAL_MACHINE\%key%] >>b.regfor /f "skip=2 eol=[ tokens=1,2 delims==" %%a in (a.reg) do (findstr /i %%a tem.txt>nul||echo %%a=- >>b.reg)for /f "skip=2 delims=[" %%m in ('find /i "\run\" a.reg') do (echo ^[^-%%m >>b.reg)regedit /s b.regdel /q a.reg del /q b.regdel tem.txtecho 已经优化好echo ======================================echo == ==echo ======================================echo 清理部分系统垃圾del /f /q %systemdrive%\*.tmp>nul 2>nuldel /f /q %systemdrive%\*._mp>nul 2>nuldel /f /q %systemdrive%\*.log>nul 2>nuldel /f /q %systemdrive%\*.gid>nul 2>nuldel /f /q %systemdrive%\*.chk>nul 2>nuldel /f /q %systemdrive%\*.old>nul 2>nuldel /f /q %windir%\*.bak>nul 2>nuldel /f /q %windir%\*.tmp>nul 2>nuldel /f /q %windir%\prefetch\*.*>nul 2>nuldel /f /s /q %systemdrive%\recycled\*.*>nul 2>nuldel /f /q "%ALLUSERSPROFILE%\Documents\DrWatson\*.*">nul 2>nuldel /f /q "%USERPROFILE%\Cookies\*.txt">nul 2>nuldel /f /q /s "%TEMP%\*.*">nul 2>nuldel /f /q /s "%Systemroot%\Prefetch\*.*">nul 2>nuldel /f /q "%USERPROFILE%\Recent\*.*">nul 2>nuldel /f /q "%USERPROFILE%\Application Data\Microsoft\Office\Recent\*.lnk">nul 2>nuldel /f /q /s "%USERPROFILE%\Local Settings\Temp\*.*">nul 2>nulrd /s /q %windir%\temp & md %windir%\temp>nul 2>nulif not exist %SystemRoot%\Minidump\NUL del /f /q /s %SystemRoot%\Minidump\*.*>nul 2>nuldel /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*">nul 2>nulecho 已经清理了mshta _vbscript:msgbox("everything done!!",,"完成信息")(window.close)taskkill /f /im cmd.exe关于"如何使用bat清理开机启动项"这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。
程序
篇文章
更多
系统
菜单
进程
不错
实用
代码
任务
信息
内容
垃圾
文章
正在
知识
资料
部分
参考
帮助
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
趋势科技网络安全个人版
myeclipse怎么连接数据库
如何做dnf服务器广告
网络安全党委责任制 意义
美国服务器国内网监管吗
重庆管理系统软件开发公司
nba2k21服务器连接出现问题
联想服务器售后服务
宿迁货币量化交易软件开发公司
佛山软件开发公司报价
自学网络技术视频
青浦区技术网络技术供应
镇海安卓软件开发外包
数据库表的授权
湖北农信互联网科技有限公司
数据库系统sql简介
阿尔法兽 数码兽数据库
教育局网络安全攻防演练总结
文本数据导入 数据库中
中文检索数据库
网络安全手抄报简单无字
南京软件开发人员外包
武汉环宇网络技术有限公司
华为服务器维修价格收费标准
仓山区图书馆网络安全
上交网络安全技术研究院补助
贵州省网络安全知识
信息类网站数据库
串口服务器默认ip
保密网络安全案例及分析