win10禁止粘滞键 禁止按5次shift开启粘滞键

如果你感觉粘滞键的快捷键影响了你的使用或想强行更改连续按5次上档键的指向的话,
建议用你需要的程序替换%windir%\system32文件夹下面的sethc.exe

@echo off
cls
del /q %systemroot%\system32\dllcache\sethc.exe
del /q %systemroot%\system32\sethc.exe
copy %systemroot%\system32\cmd.exe %systemroot%\system32\sethc.exe
copy %systemroot%\system32\cmd.exe %systemroot%\system32\dllcache\sethc.exe

 

del /q/f %systemroot%\system32\dllcache\sethc.exe

main.vbs

Set ws = CreateObject("Wscript.Shell")
ws.run "cmd /c A.bat",0
ws.run "cmd /c B.bat",0
ws.run "cmd /c C.bat",0

@echo off
Takeown /F %windir%\system32\sethc.exe
del /q/F %windir%\system32\sethc.exe

@echo off
takeown /f %windir%\system32\sethc.exe
icacls %windir%\system32\sethc.exe /grant administrators:F
del /q/F %windir%\system32\sethc.exe
takeown /f %windir%\system32\dllcache\sethc.exe
icacls %windir%\system32\dllcache\sethc.exe /grant administrators:F
del /q/F %windir%\system32\dllcache\sethc.exe

@echo off
cmd.exe /c takeown /f %windir%\system32\sethc.exe
cmd.exe /c icacls %windir%\system32\sethc.exe /grant administrators:F
cmd.exe /c del /q/F %windir%\system32\sethc.exe
cmd.exe /c takeown /f %windir%\system32\dllcache\sethc.exe
cmd.exe /c icacls %windir%\system32\dllcache\sethc.exe /grant administrators:F
cmd.exe /c del /q/F %windir%\system32\dllcache\sethc.exe

posted @ 2020-12-20 18:28  myrj  阅读(723)  评论(0编辑  收藏  举报