Reading vs. Checking Registry Key
- From: "scott" <sbailey@xxxxxxxxxxxxxxx>
- Date: Mon, 11 Apr 2005 18:46:40 -0500
I can read the below key value fine, but I need to be able to check and see
if the key exists before reading it to avoid script errors.
To my knowledge, there are only 3 methods available in the WSH Library to
access registry values: regread, regwrite and regdelete.
Anyone have a trick to testing if a key exists before taking action on it?
SCRIPT
=========
WshShell.RegRead("HKLM\Software\Webroot\Enterprise\CommAgent\TheKey")
.
- Follow-Ups:
- Re: Reading vs. Checking Registry Key
- From: Torgeir Bakken \(MVP\)
- Re: Reading vs. Checking Registry Key
- From: Asaf
- Re: Reading vs. Checking Registry Key
- From: msnews
- Re: Reading vs. Checking Registry Key
- From: Fosco
- Re: Reading vs. Checking Registry Key
- From: Joe Earnest
- Re: Reading vs. Checking Registry Key
- Prev by Date: Re: Script to delete files older than 30 days old
- Next by Date: Re: Saving Excel Spread*** with vbs?
- Previous by thread: Saving Excel Spread*** with vbs?
- Next by thread: Re: Reading vs. Checking Registry Key
- Index(es):