Quote:
Originally Posted by
netham45
...
i'v got a better Admin Checking/Requesting script:
Code:
@ECHO OFF
REM Copyright 2013 Filiph Sandström (filfat)
:checkPrivileges
NET FILE 1>NUL 2>NUL
if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )
:getPrivileges
if '%1'=='ELEV' (shift & goto gotPrivileges)
setlocal DisableDelayedExpansion
set "batchPath=%~0"
setlocal EnableDelayedExpansion
ECHO Set UAC = CreateObject^("Shell.Application"^) > "%temp%\OEgetPrivileges.vbs"
ECHO UAC.ShellExecute "!batchPath!", "ELEV", "", "runas", 1 >> "%temp%\OEgetPrivileges.vbs"
"%temp%\OEgetPrivileges.vbs"
exit /B
:gotPrivileges
setlocal & pushd .
REM Your Code After This Line
ECHO Hello Admin World!!!
Quite self explained,

also its not slow as heck
Anywyas: As Always: Have A Nice Day =)
P.S. You dont have to unclude the REM in your source file as long as you give me credits in your post