1 Star 0 Fork 1

RACH / luna-ai

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
双击运行打开管理员cmd.bat 730 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ikaros 提交于 2023-04-02 00:07 . 追加键鼠控制;增加文档内容;
@echo off
cd /d %~dp0
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
:--------------------------------------
cmd /k
1
https://gitee.com/hkingsoft_admin/luna-ai.git
git@gitee.com:hkingsoft_admin/luna-ai.git
hkingsoft_admin
luna-ai
luna-ai
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891