未验证 提交 fa9b90a7 编写于 作者: C Corey Butler 提交者: GitHub

Merge pull request #511 from rbuckton/patch-1

Do not elevate unless necessary
@setlocal
@echo off
:: Try without elevation, in case %NVM_SYMLINK% is a user-owned path and the
:: machine has Windows 10 Developer Mode enabled
%*
if %ERRORLEVEL% LSS 1 goto :EOF
:: The command failed without elevation, try with elevation
set CMD=%*
set APP=%1
start wscript //nologo "%~dpn0.vbs" %*
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册