What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Parse Registry SubKeys in JScript?

Parse Registry SubKeys in JScript?
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Parse Registry SubKeys in JScript?
new ActiveXObject("WbemScripting.SWbemLocator") ????
Locator.ConnectServer(null, "root\\default") ????
Registry.Methods_.Item("EnumValues") ????
etc...

I'm sorry but all this stuff is really not needed at all.

J-Thread is absolutely correct, 'simply' use the available Windows registry API's to do the job. They are all you need (although the method you showed has some "je-ne-sais-qua" too; still I really don't like the detour which activex takes (afterall, it uses those very same apis)).

Speaking of which, I have seen many registry accessing codes, and they are almost always exactly the same (with the same 'mistakes' or limitations), although they 'work', I haven't seen many totally fool proof and correct 100% codes (eg: first checking the length a registry key is, instead of assuming the key wnt be longer than x bytes, before retrieving it)

IIRC, Matty already posted an almost complete (but with some limitations) registry accessing script on the forums...
EDIT: I was wrong(partially) what Matty used was an external DLL => ActiveX Registry Access for Scripts

This post was edited on 08-25-2006 at 12:09 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-25-2006 12:00 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Parse Registry SubKeys in JScript? - by Jedimark on 08-24-2006 at 05:23 PM
RE: Parse Registry SubKeys in JScript? - by J-Thread on 08-24-2006 at 07:52 PM
RE: Parse Registry SubKeys in JScript? - by Ezra on 08-24-2006 at 10:35 PM
RE: Parse Registry SubKeys in JScript? - by Shondoit on 08-24-2006 at 10:54 PM
RE: Parse Registry SubKeys in JScript? - by CookieRevised on 08-25-2006 at 12:00 AM
RE: Parse Registry SubKeys in JScript? - by Shondoit on 08-25-2006 at 12:09 AM
RE: RE: Parse Registry SubKeys in JScript? - by CookieRevised on 08-25-2006 at 12:14 AM
RE: Parse Registry SubKeys in JScript? - by Shondoit on 08-25-2006 at 12:17 AM
RE: Parse Registry SubKeys in JScript? - by matty on 08-25-2006 at 01:52 AM
RE: Parse Registry SubKeys in JScript? - by -dt- on 08-25-2006 at 04:15 AM
RE: Parse Registry SubKeys in JScript? - by CookieRevised on 08-25-2006 at 03:26 PM
RE: Parse Registry SubKeys in JScript? - by Jedimark on 08-26-2006 at 12:48 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On