从此告别杀毒软件,手把手教你制作病毒免疫工具
1、创建不可删除的文件夹在创建的文本文档中输入以下代码:
md c:\Autorun.inf\
md c:\Autorun.inf\1234...\
md x:\Autorun.inf\
md x:\Autorun.inf\1234...\
其中,x表示盘符,电脑中存在几个分区即可输入几个盘符。然后将该文本文档保存为“U盘病毒防御.bat”批处理文件并将其运行,在各盘符的根目录中将会出现Autorun.inf文件,达到防御病毒的目的。

1、禁止和恢复Autorun.inf功能
编写代码,将其制作成批处理文件,就可保证插入以及打开移动设备时不中病毒。
编写清除和恢复Autorun.inf的代码
2、清除:新建一个文本文档,在其中输入以下代码,然后将其保存为delete.bat文件,运行该文件禁用Autorun.inf的功能,
@ECHO off
REG.exe DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2 /f
REG.exe ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2
ECHO
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2 []>%temp%\temp.txt
REGINI.exe %temp%\temp.txt
GOTO :eof
3、恢复:重新建立一个新的文本文档,在其中输入以下代码,将其命名“huifu.bat”,运行该文件即可恢复该功能,如下:
@ECHO off
ECHO
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2 [7]>%temp%\temp.txt
REGINI.exe %temp%\temp.txt
REG.exe DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2 /f
REG.exe ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2
GOTO :eof