Page 1 of 1 1
Topic Options
#161362 - 2006-04-28 03:37 PM Enumerate Registry
oneill Offline
Fresh Scripter

Registered: 2005-03-24
Posts: 27
Loc: Australia
Hi All,

I posted this one in the ASE forum but no hits yet so I thought someone here might be able to answer.

How would you go about enumerating the entire registry or all of the keys under a subkey?

I know the enumkey () will do a specific key but it doesn't do the keys under it. I have written some code that will enumerate only the first level of keys under a key but I would like to be able to enumerate every key under a particular key.

Any suggestions?

Top
#161363 - 2006-04-28 04:53 PM Re: Enumerate Registry
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
We have a pretty extensive UDF (User Defined Function) list here.. I would try a search there.. For example, I just found -
fEnumKey() - Enumerates registry keys on a local or remote computer

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#161364 - 2006-04-28 06:48 PM Re: Enumerate Registry
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
There is also an example in the Examples forum.

List Registry Startup Items
 

Top
#161365 - 2006-04-29 05:03 AM Re: Enumerate Registry
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Or use ArrayEnumKey(). The trick is to write the enumeration as a recursive function where each enumerated key would subsequently call ArrayEnumKey() again to enumerate it's own subkeys.
_________________________
There are two types of vessels, submarines and targets.

Top
#161366 - 2006-05-02 10:18 AM Re: Enumerate Registry
oneill Offline
Fresh Scripter

Registered: 2005-03-24
Posts: 27
Loc: Australia
Hi guys,

Thanks for the help.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.109 seconds in which 0.087 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org