1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| @echo off
if exist "%SystemRoot%\system32\atl100.dll" ( ::xcopy atl100.dll D:\ /-y ::echo "1" ) else ( xcopy atl100.dll C:\Windows\System32 /-y regsvr32 atl100.dll /n /i )
setlocal set uac=~uac_permission_tmp_%random% md "%SystemRoot%\system32\%uac%" 2>nul if %errorlevel%==0 ( rd "%SystemRoot%\system32\%uac%" >nul 2>nul ) else ( echo set uac = CreateObject^("Shell.Application"^)>"%temp%\%uac%.vbs" echo uac.ShellExecute "%~s0","","","runas",1 >>"%temp%\%uac%.vbs" echo WScript.Quit >>"%temp%\%uac%.vbs" "%temp%\%uac%.vbs" /f del /f /q "%temp%\%uac%.vbs" & exit ) endlocal
:Run :: 下面代码替换为自己的 regsvr32 "%~dp0%LockKeys.dll"
exit
|