求高手写一份bat批处理命令!(50分)

来源:百度知道 编辑:UC知道 时间:2024/05/03 05:32:44
求高手写一份bat批处理命令!
要求:
1.能删除各盘符下的autorun.inf文件!
2.不要误删别的文件!
谢谢!
写成txt文档我自己复制就可以了!
dos下我看过了没有类似sxs或者rose的自动运行病毒!
所以很奇怪!

c:
cd\
attrib autorun.inf -s -h -r
del /q autorun.inf

d:
cd\
attrib autorun.inf -s -h -r
del /q autorun.inf

e:
cd\
attrib autorun.inf -s -h -r
del /q autorun.inf

f:
cd\
attrib autorun.inf -s -h -r
del /q autorun.inf

g:
cd\
attrib autorun.inf -s -h -r
del /q autorun.inf

有多少盘符加多少

FOR %%a IN ( C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z: ) DO ATTRIB -R -H -S -A %%a\AUTORUN.INF & DEL /F /Q /A -R -H -S -A %%a\AUTORUN.INF

PS:在进程中有病毒文件的监控进程,打开进程管理器,找到耗CPU最多的,在CMD下用NTSD -P (PID)结束进程,再执行该批处理文件

autorun.inf病毒一般都是系统属性,得先改属性
attrib -s -r -h c:\autorun.inf
del c:\autorun.ini
别的盘照此复制

del C:\autorun.inf
del d:\autorun.inf
del e:\autorun.inf
del f:\autorun.inf
del g:\autorun.inf
......

有多少盘写多少 然后保存就可以了

如过