delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <3FC36EA1.89BA7EE9@npc.net> |
Date: | Tue, 25 Nov 2003 10:00:49 -0500 |
From: | "Marco Mason" <mmason AT npc DOT net> |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
To: | cygwin AT OmniCorp DOT Org |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: Regtool Recursive Option? |
References: | <1069740594 DOT 14228 DOT ezmlm AT cygwin DOT com> |
Alan-- > 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: -k, --keys print only KEYS This tells regtool to give you only the list of keys in the node. For example: $ # Here's a value $ regtool get '\user\software\Microsoft\Clock\iFormat' 1 $ # 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' iFormat $ # So tell regtool to list only other keys maslma1 AT LISTER ~/Proj/RiskMgt/ACH $ regtool -k list '\user\software\Microsoft\Clock' $ --marco -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |