mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2025-09-06 05:18:07 +00:00
combined updates
This commit is contained in:
12
assets/elevate.cmd
Normal file
12
assets/elevate.cmd
Normal file
@@ -0,0 +1,12 @@
|
||||
@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" %*
|
Reference in New Issue
Block a user