Checking for a key's existence

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

Hi,
How do I check whether a key exists in the registry? Is
there a ereturn code on read registry or something?

Thanks in Advance,
Simon.
 
Simon said:
Hi,
How do I check whether a key exists in the registry? Is
there a ereturn code on read registry or something?

Hi

Check with what? VBScript, command line util or something else?
 
Sorry,
I need to use a VBScript to check the registry for the
existence of a key,
Thanks,
Simon.
 
Simon said:
Sorry,
I need to use a VBScript to check the registry for the
existence of a key,

Hi

Note that vbscript questions is better placed in e.g. the
microsoft.public.scripting.wsh group...

Take a look here for a ready function RegKeyExists:

http://groups.google.com/[email protected]


If you want to check if a registry value exists, take a look at the
function RegValueExists here (the RegKeyExists in the link in the
link below is superseded by the version in the link above):

http://groups.google.com/[email protected]
 
Back
Top