win7系統免疫autorun病毒怎么做呢?autorun病毒是一種U盤病毒,因為autorun病毒有對付殺毒軟件的措施,所以想要清理是很難的。這種病毒做好預防措施才是最好的解決方案,下面小編就教大家win7系統怎么免疫autorun病毒的教程。
具體方法如下:
1、首先在桌面空白處點擊右鍵,選擇新建文本文檔。
2、然后把下面的代碼復制到文本文檔內;
@echo off
cls
echo 按 S 鍵刪除各個磁盤中的Autorun.inf并進行免疫(注意,插上U盤也將會進
行免疫)
echo 按 D 鍵刪除免疫程序
echo 按其他任意鍵退出
echo.
set choice=
set /p choice=請選擇要進行的操作:
if /i "%choice%"=="s" goto setup
if /i "%choice%"=="d" goto Delset
if /i "%choice%"=="" goto Exit
goto 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
echo "%%a:免疫成功"
)
)
start explorer.exe
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 操作完畢,按任意鍵退出....
pause>nul
exit
3、然后點擊左上角的文件,選擇另存為,將文件名更改為XXXX.bat。
4、然后把U盤插入電腦,雙擊運行XXXX.bat文件就可以對U盤開啟autorun病毒防護。
以上就是win7系統怎么免疫autorun病毒的教程,如果這樣防護都沒用,如果U盤中毒,那么就格式化U盤,如果是C盤中毒了就
重裝win7系統吧。