Shoutbox

Read Full Registry - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Read Full Registry (/showthread.php?tid=62003)

Read Full Registry by Rene on 06-29-2006 at 10:28 AM

Hi,

Ik got an Registry folder named 'info'
but i want that the script make an array with al the value's inside the 'info' Registry Folder.

Is this possible ?

[ I'm dutch ]

Dutch:

Ey,

Ik heb een Registry map genaamd 'info'
maar ik wil dat het script een array aanmaakt waarin alle value's uit de 'info' map in staan.

Is dit mogelijk ?


RE: Read Full Registry by absorbation on 06-29-2006 at 10:30 AM

Hello there :tongue:. I found this page yesterday which basiclly should sum up using the registry in JScript :).


RE: Read Full Registry by Ezra on 06-29-2006 at 10:37 AM

quote:
Originally posted by absorbation
Hello there :tongue:. I found this page yesterday which basiclly should sum up using the registry in JScript :).

Sure that gives one specified value, but he want's to get all the values from one key.

RE: Read Full Registry by Rene on 06-29-2006 at 10:39 AM

I know How to do read and Write, but is it possible to let an script reading the Registry folder en set al the value's into an array.

With RegRead is only possible to read one.


RE: Read Full Registry by CookieRevised on 06-29-2006 at 10:40 AM

quote:
Originally posted by absorbation
Hello there :tongue:. I found this page yesterday which basiclly should sum up using the registry in JScript :).
that wont help.

The registry activex object is very very limited. It can not be used for what Rene wants.

RegWrite, RegRead and RegDelete are the only ones that JScript knows and those methods are very, and I mean very, limited.

eg:
  • You can not check if a registry key exists or not with RegRead; it will produce an error. => can be worked around using error checking.
  • You can not write bigger values than a DWORD to a binary registry value (this means no binary data strings for example)
  • You can not write a REG_MULTI_SZ value with RegWrite
  • You can not enumerate registry keys
  • and the list goes on...

To do more than simple reading a known value, you need to revert to the registry Windows APIs and enumeration.

@Rene

Can't you just simply export that registry map within Windows registry editor? What's the purpose of your request?
RE: RE: Read Full Registry by Rene on 06-29-2006 at 10:50 AM

quote:
Originally posted by CookieRevised
  • You can not check if a registry key exists or not with RegRead; it will produce an error. => can be worked around using error checking.


That's not realy true, it is possible with try and catch, without error.

quote:
Originally posted by CookieRevised
@Rene

Can't you just simply export that registry map within Windows registry editor? What's the purpose of your request?


No, i need it for an List view, and DataBlocks i don't know realy.
RE: RE: RE: Read Full Registry by J-Thread on 06-29-2006 at 10:55 AM

quote:
Originally posted by Rene
quote:
Originally posted by CookieRevised
  • You can not check if a registry key exists or not with RegRead; it will produce an error. => can be worked around using error checking.

That's not realy true, it is possible with try and catch, without error.

Next time click the link that Cookie posted!!
RE: Read Full Registry by Mr. Bougo on 06-29-2006 at 11:33 AM

And if he calls his registry values 1, 2, 3 etc and adds a value with the total number of values in the key, then use a for loop to read them all and store them in an array?


RE: Read Full Registry by matty on 06-29-2006 at 01:16 PM

I am actally working on this for my registry module that I have going. If I make any headway or if I can get it working I will PM you.