support run as admin directly from explorer

when right click on the bat and run as admin from Windows explorer, Windows fails to find the specified exe or txt file.
This commit is contained in:
wingkinl 2018-10-23 12:22:07 +08:00 committed by GitHub
parent 3115493ecd
commit 3e57b560d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
@echo off
cd %~dp0
set parent=%~dp0
pushd %parent%
echo Installing TAP driver...
bin\tap-windows-installer.exe
echo Installing now the KMS server service...
@ -16,6 +17,7 @@ echo Setting up KMS address...
slmgr /skms 10.10.10.10
echo Sending activation request...
slmgr /ato
popd
echo All done! Press enter to exit.
pause > nul
exit