Created
March 15, 2023 15:22
-
-
Save celeron633/38f62fc13e97555c62ea39183f7a769e to your computer and use it in GitHub Desktop.
bat管理员权限判断
This file contains hidden or 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
@echo off&(cd/d "%~dp0")&(cacls "%SystemDrive%\System Volume Information" >nul 2>&1)||(color 4f&echo 请右键“以管理员身份运行”&echo.&pause&exit /b) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment