This is the mail archive of the
mailing list for the Cygwin project.
Re: Regtool Recursive Option?
- From: "Marco Mason" <mmason at npc dot net>
- To: cygwin at OmniCorp dot Org
- Cc: cygwin at cygwin dot com
- Date: Tue, 25 Nov 2003 10:00:49 -0500
- Subject: Re: Regtool Recursive Option?
- References: <firstname.lastname@example.org>
> Is it possible to use the Cygwin regtool recursively? I would like
> to search for a term (i.e. "My Documents") throughout the registry or
> at least within a subkey. It looks like this can be done by doing a
> recursive grep on /proc/registry, but this generates a lot of errors
> such as "No such file or directory" and "File or path name too long".
> You get the "No such file or directory" when you try to retrieve a value
> that doesn't exist. This is typically encountered when you use a value
> path (i.e., a terminal node in the tree).
>From the man page:
Options for 'list' Action:
print only KEYS
This tells regtool to give you only the list of keys in the node.
$ # Here's a value
$ regtool get '\user\software\Microsoft\Clock\iFormat'
$ # Getting a value is bad...
$ regtool list '\user\software\Microsoft\Clock\iFormat'
Error (2): The system cannot find the file specified.
$ # But a regular list command will return it...
$ regtool list '\user\software\Microsoft\Clock'
$ # So tell regtool to list only other keys
$ regtool -k list '\user\software\Microsoft\Clock'
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html