@echo.install......
@echo off
path=%path%;C:\Windows\system32
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
cd /d "%~dp0"
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
@cd %~dp0
@sc create Service binPath= "%~dp0\service.exe"
@sc config Service start= AUTO
@net start Service
@echo off
@echo.install successed!
10-22
420
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-12
01-05
1225
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-22
2577
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
02-28
1200
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-21
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交