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系统吧。