Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Reading a registry  (Read 5721 times)

0 Members and 1 Guest are viewing this topic.

hardslate

    Topic Starter


    Rookie

    • Experience: Beginner
    • OS: Windows 7
    Reading a registry
    « on: November 19, 2014, 03:45:05 AM »
    Okay, so I am writing a script to install "local" printers via IP addresses, and have found that I need to make modifications to the registry in order to do so. In Windows 7 however, they have introduced a new key into the TCP/IP Port registry keys called "PortMonMibPortIndex" which essentially just tells the registry what order the ports are listed in. This presents a problem for me though, as I am wanting to write this script to install the port to the next available Index number.

    What I am looking for is for a way to tell how many folders(/keys) are within a folder in the registry.




    foxidrive



      Specialist
    • Thanked: 268
    • Experience: Experienced
    • OS: Windows 8
    Re: Reading a registry
    « Reply #1 on: November 19, 2014, 03:15:01 PM »
    What I am looking for is for a way to tell how many folders(/keys) are within a folder in the registry.

    Output the 'folder' in the registry through the find command using /c and you can get a count.

    If you need an exact command, and you can show the registry information that you need to count, then one of use can provide it for you.