标题: Autorun免疫程序 [打印本页] 作者: 问君 时间: 2007-11-18 17:54 标题: Autorun免疫程序 Autorun免疫程序
一个批处理程序
@echo off
title Autorun免疫程序 v1.0
color 4F
cls
echo.
echo.
echo 欢迎使用Autorun免疫程序 v1.0
echo.
echo -----------------------------------------------------------------
echo [S] 按 S 键删除Autorun.inf并进行全盘免疫
echo.
echo [D] 按 D 键删除全盘免疫程序
echo.
echo [Q] 按其他任意键退出
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