Forum: Ruby read/write Win registry

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Rebhan, Gilbert (Guest)
on 2007-04-03 09:58
(Received via mailing list)

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

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 =


Questions =

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
Steve P. (Guest)
on 2007-04-03 21:01
(Received via mailing list)
You can use a generic RegEx for question #1.

This topic is locked and can not be replied to.