mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2026-01-14 07:03:17 +08:00
Moved helper commands to bin directory for easier build process.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -23,6 +23,6 @@ _testmain.go
|
||||
*.test
|
||||
*.prof
|
||||
|
||||
bin
|
||||
dist
|
||||
src/v*
|
||||
bin/*.exe
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
@setlocal
|
||||
@echo off
|
||||
set CMD=%*
|
||||
set APP=%1
|
||||
start wscript //nologo "%~dpn0.vbs" %*
|
||||
@@ -1,13 +0,0 @@
|
||||
Set Shell = CreateObject("Shell.Application")
|
||||
Set WShell = WScript.CreateObject("WScript.Shell")
|
||||
Set ProcEnv = WShell.Environment("PROCESS")
|
||||
|
||||
cmd = ProcEnv("CMD")
|
||||
app = ProcEnv("APP")
|
||||
args= Right(cmd,(Len(cmd)-Len(app)))
|
||||
|
||||
If (WScript.Arguments.Count >= 1) Then
|
||||
Shell.ShellExecute app, args, "", "runas", 0
|
||||
Else
|
||||
WScript.Quit
|
||||
End If
|
||||
Reference in New Issue
Block a user