保存为.bat 可以实现极域2010,V5.x版本的极域密码读取
如果是极域2016的话可以用任务管理器直接结束进程
@echo OFF&PUSHD %~DP0 &TITLE 极域2010学生端程序控制密码读取/修改
mode con cols=60 lines=20
color fc
for /l %%a in (3 1 15) do (
set /a "cols=30+%%a*2"
call mode con:cols=%%cols%% lines=%%a
)
@echo off
REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\TopDomain\e-Learning Class Standard\1.00" /s|find "UninstallPasswd" >nul
IF ERRORLEVEL 1 (
@echo 出现问题,本机未安装学生端或无管理员权限!
pause
exit
) ELSE (goto start)
:start
echo ============请输入数字选择下一步操作:
echo ============1:修改
echo ============2: 读取
echo ============3:关于
set /P var=":"
if %var%==1 goto newp
if %var%==2 goto readp
if %var%==3 goto about
@ echo.
echo 年轻人。别乱搞
ping -n 2 127.1>nul
cls
goto start
:newp
@echo 设置一个新密码
@echo 请输入
set /p new=
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\TopDomain\e-Learning Class Standard\1.00" /v "UninstallPasswd" /t reg_sz /d Passwd%new% /f
pause
:readp
@echo 一键读取密码。无需额外等待!
@echo.
@echo 恭喜!读取成功!
@echo.
for /f "delims=" %%i in ('REG.EXE QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\TopDomain\e-Learning Class Standard\1.00" /V "UninstallPasswd"') do set InstallDir="%%i"
set InstallDir=%InstallDir:~40,-1%
@echo 学生端程序的密码是:%InstallDir%
@echo.
pause
exit
:about
echo -----------------------------------------------
echo **Huawei Net lab By:yjh 2015/10/26**
echo -----------------------------------------------
pause
cls
goto start