Results 1 to 9 of 9

Thread: How to check if registry key exists

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Dungeon Keeper's Avatar
    Join Date
    Mar 2008
    Posts
    590

    How to check if registry key exists

    Im working with Wscript.Shell object.
    Is there any way to check if a registry key exists.
    If i want to read a value from a registry key, and if it doesnt exists i get an error.
    I want to check first if a value exists and if it does then i want to read from it.

    im reading registry keys with those commands:

    Code:
    set wsh = CreateObject("Wscript.Shell") 
    a = wsh.RegRead(MyRegKey)
    Last edited by Dungeon Keeper; Mar 22nd, 2008 at 09:38 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width