:IsRegKey Key -- succeeds if Key exists :: -- Key [in] - registry key reg query "%~1">NUL 2>NUL EXIT /b