全盘免疫Autorun.inf自动播放批处理程序

2021/10/11 11:14:14

本文主要是介绍全盘免疫Autorun.inf自动播放批处理程序,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

免疫优盘、移动硬盘、本地磁盘等存储设备在Win系统环境下的Autorun.inf自动播放程序批处理代码,不知道怎么做成批处理程序文件的,点这个【下载已做好的程序】即可。

@echo off
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /d 255 /t REG_DWORD /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /d 255 /t REG_DWORD /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 del %%a:\autorun.inf /f /q /a r s h & %%a:\autorun.inf
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 md %%a:\autorun.inf & md %%a:\autorun.inf\empty..\ & %%a:\autorun.inf
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 echo y| cacls %%a:\autorun.inf /c /t /p everyone:f & attrib %%a:\autorun.inf +h +r +s +a & echo y| cacls %%a:\autorun.inf /D everyone & %%a:\autorun.inf
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
gpupdate /force

使用方法:复制上述代码,另存为所有文件类型,后缀名为【.bat】格式文件程序,然后右键以管理员身份运行它即可。如果系统缺少cacls或报错,实在懒的网络搜索下载cacls.exe文件,我做好了已集成cacls的单文件版本,不用再下载任何程序,直接用就可以了,点击转到下载页。



这篇关于全盘免疫Autorun.inf自动播放批处理程序的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程