Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Finding Registry Values
Topic Summary:
Created On: 23-Jun-2006 16:29
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 23-Jun-2006 16:29
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

For a given registery "key" (looks like a file name), does anyone know of a way to loop through all the values, finding values when we don't know their names ahead of time?

- Louie
Report this to a Moderator Report this to a Moderator
 26-Jun-2006 16:46
User is offline View Users Profile Print this message


Craig Forant

Posts: 56
Joined: 21-Feb-2005

http://www.windowsdevcenter.co.../VB_Registry_Keys.html

I ran across this article this weekend which explains in great detail how to access Registry values with VB. Maybe it will help.

Craig

-------------------------
Craig Forant
me@craigforant.com
Report this to a Moderator Report this to a Moderator
 27-Jun-2006 00:08
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Thanks I read it. Not sure how I can take advantage of that info within DXL. Do I write some dxl-api interface to command VBA to do what I want? Never done anything like that.

- Louie
Report this to a Moderator Report this to a Moderator
 29-Jun-2006 18:41
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

Louie,

There is a command line switch to regedit that allows you to export a registry path to a file, where you can access it from DXL to parse the information you're looking for.

An example of the command line is:
regedit.exe /a C:\output.txt HKEY_LOCAL_MACHINE\SOFTWARE\Telelogic

This will extract the Telelogic path to a structured file where it can be parsed.

I've taken this idea and created a Windows Registry Browser that you can use to load an area of the registry and look around. There are some limitations:
  • If the portion of the registry is very large, it takes a VERY long time to parse the file
  • Only entries of type REG_SZ will be fetched from the registry. All other entries will result in an empty string.
  • The (Default) parameter is ignored. This is sometimes listed as "@=" in the registry file.

    You can download and run the attached code. I believe it is safe to run the script as the only thing opened for writing is a temporary file, but please be careful with it anyway.

    -Dennis


  • Report this to a Moderator Report this to a Moderator
    Statistics
    20925 users are registered to the Telelogic DOORS forum.
    There are currently 1 users logged in.
    The most users ever online was 15 on 15-Jan-2009 at 16:36.
    There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
    You have posted 0 messages to this forum. 0 overall.

    FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.