Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > read/write Win registry

Reply
Thread Tools

read/write Win registry

 
 
Rebhan, Gilbert
Guest
Posts: n/a
 
      04-03-2007

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


 
Reply With Quote
 
 
 
 
studlee2
Guest
Posts: n/a
 
      04-03-2007
You can use a generic RegEx for question #1.

_stud

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applet to run on Win 98, Win ME, Win XP, Win Vista & Win 7 ?? Krist Java 6 05-06-2010 11:53 PM
Help:win95 registry vs. winxp registry wege Computer Support 3 06-09-2006 06:28 PM
How to read a registry key from Windows registry ? Leny Java 3 02-01-2005 07:54 AM
Interpretation of registry log of tweakui produced registry alteration vincemoon@rcn.com ASP .Net 0 01-10-2005 02:53 AM
Reading registry key throws "Requested registry access is not allowed." HK ASP .Net 1 04-01-2004 04:44 PM



Advertisments