autorun病毒的危害相信中過招的人都有體會。其最大的特點就在於很難清除乾淨,現在可以提前對系統分區做一次免疫工作,而那些已經中了autorun病毒的用戶也能順便將病毒清除。 有人曾經使用系統組策略的方法,不過對於初學者來說有點複雜。現在複製以下代碼到文本文件中,保存爲bat文件即可。 @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 ) ) echo. echo. echo 操作完畢,按任意鍵退出... pause>nul exit