Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Way to see if registry Key exists

Status
Not open for further replies.

ErrolDC

MIS
May 26, 2004
72
US
With the Scripting.FileSystem object, one can check to see if a file actually exists before trying to open it. Is it possible to examine the registry for a particular keyname to see if it exists? Everything I've seen and done at this point assumes that the key exists.

Thanks.

Errol Neal
 
You may consider playing with the On Error instruction the WshShell.RegRead method and the Err object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top