-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33c3df1
commit 30644ed
Showing
3 changed files
with
52 additions
and
12 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
::@author FB | ||
::@version 0.1.0 | ||
|
||
::判断管理员权限 | ||
:: 返回@: TRUE,有权限; FALSE,无权限; | ||
:: 退出码: 0,有权限; 1,无权限; | ||
|
||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
|
||
NET SESSION 1>NUL 2>&1 | ||
IF "%ERRORLEVEL%" == "0" ( | ||
SET "@=TRUE" & EXIT /B 0 | ||
) ELSE ( | ||
SET "@=FALSE" & EXIT /B 1 | ||
) |
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