Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com Message-ID: <3FC36EA1.89BA7EE9@npc.net> Date: Tue, 25 Nov 2003 10:00:49 -0500 From: "Marco Mason" X-Accept-Language: en MIME-Version: 1.0 To: cygwin@OmniCorp.Org CC: cygwin@cygwin.com Subject: Re: Regtool Recursive Option? References: <1069740594.14228.ezmlm@cygwin.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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@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/