How to read (default) value in registry key in VBScript / JScript

I can read the value of the key name "UpdateCheck" in

HKEY_LOCAL_MACHINE \ SOFTWARE \ CCleaner \

with Shell.RegRead ("HKEY_LOCAL_MACHINE \ SOFTWARE \ CCleaner \ UpdateCheck")

But I can’t read this key name "(default)".

Shell.RegRead ("HKEY_LOCAL_MACHINE \ SOFTWARE \ CCleaner \ Default")

How to read it?

+3
source share
1 answer

Just pass the key name to RegRead and you will get the default value. For instance:.

Shell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\CCleaner\")

. \ . , CCleaner HKEY_LOCAL_MACHINE\SOFTWARE. . .reg- .

[HKEY_LOCAL_MACHINE\SOFTWARE]
"CCleaner"="Some string value"

[HKEY_LOCAL_MACHINE\SOFTWARE\CCleaner]
@="some-default-value"
+4

Source: https://habr.com/ru/post/1762395/


All Articles