I read the posts related to this, and it seems too complicated. I wrote a try. (If you think it's okay, please support it)
@echo off
if exist M.RQM goto bn
rem llts in 0070303schj by q@251485609
@echo 12345678>M.RQM
:bn
@cls
@echo off
@echo.
@echo.
@echo.
@echo To ensure the security of user settings, this program requires administrator privileges to enter and operate!
@echo.
@echo.
@echo Enter T to exit
@echo.
@echo ------- * -------- * --------
@echo.
@echo Initial password: 12345678
@echo.
SET /P SY= Please enter the administrator password:
FOR /F %%I IN (M.RQM) DO SET syq=%%I
IF "%SY%" == "%syq%" GOTO kyjr
IF "%SY%" == "CK" GOTO ckmm
IF "%SY%" == "T" GOTO :eof
@cls
@echo.
@echo.
@echo.
@echo Sorry, (the password may have been changed) you are not an administrator and cannot enter and operate!
pause>nul
@goto bn
:kyjr
@cls
@echo.
SET /P SYg= Please press any key to enter the program (if you need to change the original password, please enter XGMM):
IF "%SYg%" == "XGMM" GOTO xg
IF not "%SYg%" == "XGMM" goto k
:xg
@cls
SET /P xmm= Please enter the new password:
@echo %xmm%>xmm.txt
SET /P cxmm= Please enter again:
FOR /F %%I IN (xmm.txt) DO SET xsyq=%%I
IF "%cxmm%" == "%xsyq%" GOTO gng
@echo Password does not match!
pause
goto xg
:gng
COPY xmm.txt M.RQM
@echo Password changed successfully! Please remember this password.
pause>nul
goto bn
:ckmm
@cls
FOR /F %%I IN (M.RQM) DO SET syq=%%I
@echo %syq%
pause>nul
goto bn
:k
del xmm.txt
@cls
@echo Enter the usage program
pause>nul
@echo off
if exist M.RQM goto bn
rem llts in 0070303schj by q@251485609
@echo 12345678>M.RQM
:bn
@cls
@echo off
@echo.
@echo.
@echo.
@echo To ensure the security of user settings, this program requires administrator privileges to enter and operate!
@echo.
@echo.
@echo Enter T to exit
@echo.
@echo ------- * -------- * --------
@echo.
@echo Initial password: 12345678
@echo.
SET /P SY= Please enter the administrator password:
FOR /F %%I IN (M.RQM) DO SET syq=%%I
IF "%SY%" == "%syq%" GOTO kyjr
IF "%SY%" == "CK" GOTO ckmm
IF "%SY%" == "T" GOTO :eof
@cls
@echo.
@echo.
@echo.
@echo Sorry, (the password may have been changed) you are not an administrator and cannot enter and operate!
pause>nul
@goto bn
:kyjr
@cls
@echo.
SET /P SYg= Please press any key to enter the program (if you need to change the original password, please enter XGMM):
IF "%SYg%" == "XGMM" GOTO xg
IF not "%SYg%" == "XGMM" goto k
:xg
@cls
SET /P xmm= Please enter the new password:
@echo %xmm%>xmm.txt
SET /P cxmm= Please enter again:
FOR /F %%I IN (xmm.txt) DO SET xsyq=%%I
IF "%cxmm%" == "%xsyq%" GOTO gng
@echo Password does not match!
pause
goto xg
:gng
COPY xmm.txt M.RQM
@echo Password changed successfully! Please remember this password.
pause>nul
goto bn
:ckmm
@cls
FOR /F %%I IN (M.RQM) DO SET syq=%%I
@echo %syq%
pause>nul
goto bn
:k
del xmm.txt
@cls
@echo Enter the usage program
pause>nul

