我想很多人是从珊瑚虫版QQ登录的,加上CoralQQ.exe
其他版的我就不知道了。
暂时禁止QQ运行.bat- @echo off
- cd/d %~dp0
- set NoRun1=QQ.exe
- set NoRun2=CoralQQ.exe
- set DRun=HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun
-
- call :reg_add %DRun% "%NoRun1%"
- call :reg_add %DRun% "%NoRun2%"
- goto :eof
-
- :reg_add
- reg add %1 /v %~n2 /t REG_SZ /d %2 /f >nul
- goto :eof
复制代码 允许运行QQ.bat- @echo off
- cd/d %~dp0
- set NoRun1=QQ.exe
- set NoRun2=CoralQQ.exe
- set DRun=HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun
-
- call :reg_del %DRun% "%NoRun1%"
- call :reg_del %DRun% "%NoRun2%"
- goto :eof
-
- :reg_del
- reg delete %1 /v %~n2 /f >nul
- goto :eof
复制代码
|