X-Spam-Check-By: sourceware.org Message-ID: <000701c6a821$db631a10$0200a8c0@UrsaMajor> From: "Stephen D Lindner" To: References: <003201c6a78f$b1c49450$0200a8c0 AT UrsaMajor> <000a01c6a79e$5ee539b0$0200a8c0 AT UrsaMajor> <000a01c6a7a6$94b90140$0200a8c0 AT UrsaMajor> <3ouugfdsbp9 DOT vo1zvl9lz5k DOT dlg AT 40tude DOT net> Subject: Re: Double backslashed registry names can't be found? Date: Sat, 15 Jul 2006 11:17:58 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com ----- Original Message ----- From: "Thorsten Kampe" To: Sent: Saturday, July 15, 2006 9:46 AM Subject: Re: Double backslashed registry names can't be found? >* Stephen D Lindner (2006-07-15 01:35 +0000) >> OK, no more top posting...I can take a hint...erp, excuse me. > > Your quoting is way beyond good and evil... > > You can't "check" with regtool for values - only for keys. The > documentation says it. > > On the other hand you shouldn't trust the documentation because it is > incorrect in many ways: > > * It says "KEY is in the format [host]\prefix\KEY\KEY\VALUE" (which > would mean that you /could/ "regtool check" for values - but you > can't. The problem here is that sometimes "KEY" means "KEY" and > sometimes "KEY" means "KEY\VALUE". > > * It says "You can use forward slash ('/') as a separator instead of > backslash, in that case backslash is treated as escape character" > ...which would mean that > > regtool get > '/HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/UserAssist/{75048700-EF1F-11D0-9888-006097DEACF9}/Count/HRZR_EHACNGU:S:\\cfgneg.rkr' > > ...should work - but it doesn't. > > * the doc says "Options for 'set' and 'unset' Actions: -K, > --key-separator[=] set key separator to instead of '\'" > > That incorrect in two ways because > > 1. "-k" is not only valid for set and unset but it's also valid for > "get" > > 2. It would mean that "regtool -K+ check > '+HKEY_CURRENT_USER+Software'" would be valid but it isn't. > > So what actually does work...? > > 1. regtool -K+ get > '\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\Count+HRZR_EHAPCY:"P:\JVAQBJF\flfgrz32\vagy.pcy",Ertvbany > naq Ynathntr Bcgvbaf' > and > 2. regtool -K+ get > '/HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/UserAssist/{75048700-EF1F-11D0-9888-006097DEACF9}/Count+HRZR_EHAPCY:"P:\\JVAQBJF\\flfgrz32\\vagy.pcy",Ertvbany > naq Ynathntr Bcgvbaf' > I've made SOME of these work ok but I still need to revisit this (becoming) regtool script from hell. Microshaft (and worm writers, etc.) stores so much quatsch in the registry. It is nominally relational. It is also hierarchical. It would be so nice if there were some really nice tools to tame the beast. For example, (1) list a bunch of records. (2) Grep for those records that meet the criteria. (3) Do something to the records that meet the criteria. Maybe build a MySQL interface to the bloody thing? ...sorta... Hmmm. Doesn't look good. > > -- > 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/ > > -- 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/