Results 1 to 4 of 4

Thread: Retrieving registry sub-keys for proccessing

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2018
    Posts
    15

    Retrieving registry sub-keys for proccessing

    Hi Guys

    I do understand how to get a value from the registry but my problem is getting a list of subkeys of a key...not even sure where to start...

    For Example I have a key called GAMES and under that key a subkey called USERS...under there there are KEYS with usernames that I don't know until I look under that subkey USERS.. but I want to dynamically make a list of USERS subkeys so I can go back and process values under each one of those USER Keys...any Idea where to start?

    Here is my example

    Games
    - Users
    -Username1
    HighScore = whatever
    Username2
    Highscore = whatever
    Username3
    Highscore = whatever


    Basically I want to
    I want to retrieve a List of the username keys so that i can later proccess the highscore values

    can someone please lead me on the right path...

    Thanks in advance

  2. #2
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,508

    Re: Retrieving registry sub-keys for proccessing

    Why are you using the Registry to store this data? A Database or Text file or XML ...... Seems better suited.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2018
    Posts
    15

    Re: Retrieving registry sub-keys for proccessing

    Quote Originally Posted by wes4dbt View Post
    Why are you using the Registry to store this data? A Database or Text file or XML ...... Seems better suited.
    A different program is making the keys I just want to adjust them

  4. #4
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,508

    Re: Retrieving registry sub-keys for proccessing

    Ok, you don't have a choice. To be honest I don't know the answer, hardly ever mess with the registry. But maybe this will help https://docs.microsoft.com/en-us/dot...tframework-4.8

Tags for this Thread

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