|
@echo off
setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
set /a n=0
set dl=CDEFGHIJKLMNOPQRSTUVWXYZ
:s
set d=!dl:~*n*,1!:
del /f /q /a s h r a *d*\autorun.inf>nul 2>nul
for /f "delims=" **a in ('dir /s /b /a s h r a *d*\autorun.inf') do (rd \s \q **a.\&rd /s /q *d*\autorun.inf)>nul 2>nul
set /a n=n+1
if not *n*==24 goto s
pause
在NTFS格式硬盘中免疫AUTORUN.INF方法
@echo off
set /p s="请输入你要免疫的盘的盘符(按回车确认)"
md *s*:\autorun.inf
md *s*:\autorun.inf\病毒免疫...attrib +a +s +h +r *s*:\autorun.inf
echo y|cacls *s*:\autorun.inf /d everyone
完全禁用AUTORUN.INF
@echo off
setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
set /a n=0
set dl=CDEFGHIJKLMNOPQRSTUVWXYZ
:s
set d=!dl:~*n*,1!:
echo y|cacls *d*\autorun.inf /t /c /e /g everyone:f>nul 2>nul
del /f /q /a s h r a *d*\autorun.inf>nul 2>nul
for /f "delims=" **a in ('dir /s /b /a s h r a *d*\autorun.inf') do (rd \s \q **a.\&rd /s /q *d*\autorun.inf)>nul 2>nul
set /a n=n+1
if not *n*==24 goto s
pause
以上文件均是在记事本保存为保存为任意名.bat就可以了
AUTORUN.INF专杀工具:
http://www.181 自:htpp://bbs.15735.com

