This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TITLE Asking for administrator access | |
MODE CON COLS=37 LINES=3 | |
COLOR F0 | |
ECHO ::::::::::::::::::::::::::::::::::::: | |
ECHO :: Requesting administrator access :: | |
ECHO ::::::::::::::::::::::::::::::::::::: | |
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && ""%~s0"" %Apply%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B ) | |
COLOR | |
CLS |
OlderNewer