📌  相关文章
📜  以管理员命令行运行 cmd - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:41.902000             🧑  作者: Mango

代码示例4
if "%~s0"=="%~s1" ( cd %~sp1 & shift ) else (
  echo CreateObject^("Shell.Application"^).ShellExecute "%~s0","%~0 %*","","runas",1 >"%tmp%%~n0.vbs" & "%tmp%%~n0.vbs" & del /q "%tmp%%~n0.vbs" & goto :eof
)