?
Solved

How can registry subkeys under a key be enumerated with vbscript ?

Posted on 2006-05-22
3
Medium Priority
?
187 Views
Last Modified: 2010-04-17
please help.
0
Comment
Question by:itbabe
  • 2
2 Comments
 
LVL 65

Expert Comment

by:rockiroads
ID: 16733753
This example here shows how to read the list of installed programs

That in the registry is one key with lots of subkeys

http://www.computerperformance.co.uk/ezine/ezine63.htm

0
 
LVL 65

Accepted Solution

by:
rockiroads earned 2000 total points
ID: 16733773
think this snippet of code will do also

SCRIPT language= "vbscript" runat="server">

    Set RegEdit = CreateObject("RegEdit.Server")
    For Each Key In RegEdit.Keys("SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall").SubKeys
        If Key.ExistsValue("DisplayName") Then
          Response.write Key.Values("DisplayName").Value
        Else
          Response.write Key.Name
        End If
    Next

  </SCRIPT>

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Screencast - Getting to Know the Pipeline

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question