@echo off cls echo 按 S 键删除Autorun.inf并进行免疫 echo. echo 按 D 键删除免疫程序 echo. echo 按其他任意键退出 echo. echo. SET Choice= SET /P Choice= 请选择要进行的操作: IF /I '%Choice:~0,1%'=='s' GOTO setup IF /I '%Choice:~0,1%'=='d' GOTO Delset IF /I '%Choice:~0,1%'=='q' GOTO Exit exit :Setup taskkill /im explorer.exe /f 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 @( if exist %%a: ( rd %%a:\autorun.inf /s /q del %%a:\autorun.inf /f /q mkdir %%a:\autorun.inf mkdir %%a:\autorun.inf\"病毒免疫勿删除../" attrib +h +r +s %%a:\autorun.inf
) ) start explorer.exe 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 ( if exist %%a:\nul ( >1.vbs echo msgbox^ "%%a:免疫成功",64,"提示:" 1.vbs ) ) del 1.vbs echo. echo. echo 按任意键退出... pause>nul exit
:delset 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 @( If Exist %%a: ( rd %%a:\autorun.inf /s /q