read/write Win registry

Discussion in 'Ruby' started by Rebhan, Gilbert, Apr 3, 2007.

  1. Hi,

    i know there were already questions with this
    subject on that board, but i didn't found a useful
    snippet.

    Running Ruby 1.8.4, Win2000 | Win2003
    i want to read and write some registry values.

    I know there is Win32::Registry, but i don't know
    how to use it.

    i.e. i need to read / write key/value pairs under =3D

    HKEY_USERS\S-1-5-21-373698554-2142300011-3433917070-7290\Software\Cvsnt\
    cvspass

    Questions =3D

    1. the part with S-1-5- ... changes for every machine, how to get the
    right keyname ?

    2. how to get all entries under that key in a hashmap ?

    3. how do i edit those entries ?


    Regards, Gilbert
    Rebhan, Gilbert, Apr 3, 2007
    #1
    1. Advertising

  2. Rebhan, Gilbert

    studlee2 Guest

    You can use a generic RegEx for question #1.

    _stud
    studlee2, Apr 3, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. HK
    Replies:
    1
    Views:
    3,631
    Cowboy \(Gregory A. Beamer\)
    Apr 1, 2004
  2. Replies:
    0
    Views:
    751
  3. Leny
    Replies:
    3
    Views:
    16,923
    Daniel
    Feb 1, 2005
  4. Krist
    Replies:
    6
    Views:
    740
    Arne Vajhøj
    May 7, 2010
  5. miamia
    Replies:
    5
    Views:
    2,237
    Thorsten Kampe
    Jun 25, 2011
Loading...

Share This Page