Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com Date: Wed, 19 Jan 2000 22:24:04 -0500 Message-Id: <200001200324.WAA29348@envy.delorie.com> From: DJ Delorie To: cygwin-developers AT sourceware DOT cygnus DOT com Subject: new util: regtool.cc I just checked in a new program called "regtool" into winsup/utils/regtool.cc. It should show up in tonight's snapshot (unless something else breaks it). This is a small command-line utility that lets shell scripts read and/or modify the registry (yes, it can be dangerous, but you don't *have* to use it ;). Usage text appended. If you can't wait, I put a copy at http://www.delorie.com/cygwin/regtool.cc DJ -- Regtool Copyright (c) 2000 Red Hat Inc regtool -h - print this message regtool [-v] list [key] - list subkeys and values regtool [-v] add [key\subkey] - add new subkey regtool [-v] remove [key] - remove key regtool [-v|-q] check [key] - exit 0 if key exists, 1 if not regtool [-i|-s|-e|-m] set [key\value] [data ...] - set value -i=integer -s=string -e=expand-string -m=multi-string regtool [-v] unset [key\value] - removes value from key regtool [-q] get [key\value] - prints value to stdout -q=quiet, no error msg, just return nonzero exit if key/value missing keys are like \prefix\key\key\key\value, where prefix is any of: root HKCR HKEY_CLASSES_ROOT config HKCC HKEY_CURRENT_CONFIG user HKCU HKEY_CURRENT_USER machine HKLM HKEY_LOCAL_MACHINE users HKU HKEY_USERS example: \user\software\Microsoft\Clock\iFormat