regedit fails with a pop-up
Brian Inglis
Brian.Inglis@SystematicSw.ab.ca
Fri May 13 19:43:25 GMT 2022
On 2022-05-13 12:41, Kevin Schnitzius via Cygwin wrote:
> On Friday, May 13, 2022, 01:50:12 PM EDT, Denis Excoffier wrote:
>> It seems that very recently (immediately after i installed 3.3.5),
>> /cygdrive/c/windows/regedit /E 'HKEY_CURRENT_USER\Environment'
>> no longer works (i.e. should dump the environment on stdout), and
>> produces a pop-up window with:
>> Cannot export HKEY_CURRENT_USER\Environment: Error opening the file. There may be a disk or file system error.
> Note: this fails the same way from cmd.
> regedit /e --- Exports the entire registry to a file. You can modify this command to add a filename and specific location on the drive, such as regedit /e c:\AllRegistryEntries.reg. You can export a specific key with the following example command regedit /e keybackup.reg HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Edge.
> You cannot use con: as the output file apparently.
Windows regedit executes in the background, and reg, regtool save use
Windows binary reg file formats, and regedit /e and reg export save as
utf16le using hex for strings - use Cygwin regtool list -v instead for
readable strings e.g.
$ regtool list -v \\HKEY_CURRENT_USER\\Environment\\
$ regtool list -v /HKEY_CURRENT_USER/Environment/
$ regtool list -v /proc/registry/HKEY_CURRENT_USER/Environment/
$ regtool list -v //hostname/HKEY_CURRENT_USER/Environment/
$ regtool list -v hostname:/HKEY_CURRENT_USER/Environment/
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
More information about the Cygwin
mailing list