中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-06 04:01
48,039 主题排行 / 350,124 发帖 / 今日 2 篇 / 48,251 会员排行
DOS批处理 & 脚本技术(批处理室) » 天X防毒批处理
可打印版本  844 / 6
第1楼 putao 发表于 2007-10-05 15:12
初级用户 发帖 41 积分 80
天X防毒批处理
将下面的代码用记事本写好,再别存为.bat的文件(批处理文件)
最好将系统盘用影子系统保护起来,在加上本批处理相信可以防%95的病毒.
本批处理是根据我个人的机子的分区来写的,你可以自己根据自己电脑改一下.
注:本批处理过后会生成部份文件夹,其正是为了防毒的请你放心!
请各位多多指教!

@echo off&setlocal enabledelayedexpansion
mode con cols=100 lines=10
for /l %%a in (1,1,8) do (
echo/
echo\
echo.
echo **********************************************************************
echo *************************天X防毒批处理*******************************
echo **********************************************************************
color cf
ping -n 1 127.1>nul
color fc
ping -n 1 127.1>nul
cls
)
color f1
cls
pause

attrib %windir%\Logo1_.exe -s -r -h
del %windir%\Logo1_.exe /y
md %windir%\Logo1_.exe
attrib %windir%\Logo1_.exe +s +r +h
md %windir%\Logo1_.exe\p..\
attrib %windir%\uninstall\rundl132.exe -s -r -h
del %windir%\uninstall\rundl132.exe /y
md %windir%\uninstall\rundl132.exe
attrib %windir%\uninstall\rundl132.exe +s +r +h
md %windir%\uninstall\rundl132.exe\p..\

attrib c:\autorun.inf -s -r -h
del c:\autorun.inf /y
md c:\autorun.inf
attrib c:\autorun.inf +s +r +h
md c:\autorun.inf\p..\
attrib c:\auto.exe -s -r -h
del c:\auto.exe /y
md c:\auto.exe
attrib c:\auto.exe +s +r +h
md c:\auto.exe\p..\
attrib c:\autorun.exe -s -r -h
del c:\autorun.exe /y
md c:\autorun.exe
attrib c:\autorun.exe +s +r +h
md c:\autorun.exe\p..\

attrib d:\autorun.inf -s -r -h
del d:\autorun.inf /y
md d:\autorun.inf
attrib d:\autorun.inf +s +r +h
md d:\autorun.inf\p..\
attrib d:\auto.exe -s -r -h
del d:\auto.exe /y
md d:\auto.exe
attrib d:\auto.exe +s +r +h
md d:\auto.exe\p..\
attrib d:\autorun.exe -s -r -h
del d:\autorun.exe /y
md d:\autorun.exe
attrib d:\autorun.exe +s +r +h
md d:\autorun.exe\p..\

attrib e:\autorun.inf -s -r -h
del e:\autorun.inf /y
md e:\autorun.inf
attrib e:\autorun.inf +s +r +h
md e:\autorun.inf\p..\
attrib e:\autorun.exe -s -r -h
del e:\autorun.exe /y
md e:\autorun.exe
attrib e:\autorun.exe +s +r +h
md e:\autorun.exe\p..\
attrib e:\auto.exe -s -r -h
del e:\auto.exe /y
md e:\auto.exe
attrib e:\auto.exe +s +r +h
md e:\auto.exe\p..\

attrib f:\autorun.inf -s -r -h
del f:\autorun.inf /y
md f:\autorun.inf
attrib f:\autorun.inf +s +r +h
md f:\autorun.inf\p..\
attrib f:\autorun.exe -s -r -h
del f:\autorun.exe /y
md f:\autorun.exe
attrib f:\autorun.exe +s +r +h
md f:\autorun.exe\p..\
attrib f:\auto.exe -s -r -h
del f:\auto.exe /y
md f:\auto.exe
attrib f:\auto.exe +s +r +h
md f:\auto.exe\p..\

echo/
echo\
echo.
echo **********************************************************************
echo ***************************OK OVER**********************************
echo **********************************************************************
color cf
ping -n 1 127.1>nul
color fc
ping -n 1 127.1>nul
cls
)
第2楼 waynebeat 发表于 2007-10-05 22:55
初级用户 发帖 28 积分 84
这劳动力,挺强
第3楼 luckboy45 发表于 2007-10-07 19:20
中级用户 发帖 212 积分 487
太傻的东西...不过辛苦楼主了.....其实可以用简单的代码实现的,....
第4楼 HAT 发表于 2007-10-08 17:55
版主 发帖 5,017 积分 9,023
建议用for循环来遍历盘符,比如:
第5楼 fanqiang 发表于 2007-10-09 15:22
初级用户 发帖 56 积分 113
del %%a:\autorun.inf

最好换成
rd %%a:\autorun.inf
就好多了
第6楼 67411666 发表于 2007-10-14 15:56
初级用户 发帖 25 积分 45
对啊
第7楼 putao 发表于 2007-10-18 23:07
初级用户 发帖 41 积分 80
大家想法都很对
你说的把del改为rd
首先是要删掉autorun.inf这个文件而不是文件夹呀~
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023