(Windows) 배치파일(.bat) 실행시 자동으로 관리자권한 얻어서 실행하는 방법

Post Views: 97 (Windows) 배치파일(.bat) 실행시 자동으로 관리자권한 얻어서 실행하는 방법 REM –add the following to the top of your bat file– @echo off :: BatchGotAdmin :————————————-REM –> Check for permissions nul 2>&1 “%SYSTEMROOT%\system32\cacls.exe” “%SYSTEMROOT%\system32\config\system” REM –> If error flag set, we do not have admin.if ‘%errorlevel%’ NEQ ‘0’ (echo Requesting administrative privileges…goto UACPrompt) else…

더보기