Description: |
call:IsRegValue Key Value |
Script: |
1. 2. 3. 4. 5. 6. 7. 8. 9.
|
:IsRegValue Key Value -- succeeds if Key and Value exists
:: -- Key [in] - registry key
:: -- Value [in] - registry value, return default value if omitted
:$created 20060101 :$changed 20080219 :$categories Registry
:$source https://www.dostips.com
SETLOCAL
if "%~2"=="" (set v=/ve) ELSE set v=/v "%~2"
reg query "%~1" %v%>NUL 2>NUL
EXIT /b
|
|