diff --git a/5kblHotspotHelper.bat b/5kblHotspotHelper.bat index 0004118..7905766 100644 --- a/5kblHotspotHelper.bat +++ b/5kblHotspotHelper.bat @@ -1,20 +1,7 @@ @echo off -goto check_Permissions - -:check_Permissions - - net session >nul 2>&1 - if %errorLevel% == 0 ( - goto setup - ) else ( - echo. - echo Please run this script again with admininstrator priviliges. - echo. - pause - exit - - ) +%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit +cd /d "%~dp0" :setup setlocal enableDelayedExpansion