Mail Archives: cygwin-developers/2000/01/19/22:20:26
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
- Raw text -