From 3e57b560d2dec56bd1657ea8b12f3a94796b7bb8 Mon Sep 17 00:00:00 2001 From: wingkinl Date: Tue, 23 Oct 2018 12:22:07 +0800 Subject: [PATCH] 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. --- install.bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.bat b/install.bat index f48321c..6e72227 100644 --- a/install.bat +++ b/install.bat @@ -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