我有一个批处理脚本,检查是否存在注册表项,如果它存在,则打开Internet Explorer.我现在想要做的是获取该注册表密钥的值并将其放入URL中.我怎样才能做到这一点?
@echo off
reg query HKLM\Software\Test\Monitor\Settings
if errorlevel 1 goto not_exist
goto exist
:not_exist
:exist
start "Test" "%ProgramFiles%\Internet Explorer\iexplore.exe" http://localhost:/dashboard.php
Run Code Online (Sandbox Code Playgroud)
谢谢大家的帮助.