public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: regedit fails with a pop-up
Date: Fri, 13 May 2022 13:43:25 -0600	[thread overview]
Message-ID: <928d1480-0d28-2487-beda-269a4660cb28@SystematicSw.ab.ca> (raw)
In-Reply-To: <1400080973.2413431.1652467302515@mail.yahoo.com>

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.]

  reply	other threads:[~2022-05-13 19:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-13 17:42 Denis Excoffier
     [not found] ` <579342583.2402190.1652467249328@mail.yahoo.com>
2022-05-13 18:41   ` Kevin Schnitzius
2022-05-13 19:43     ` Brian Inglis [this message]
2022-05-13 18:47 ` Rainer Emrich
2022-05-13 19:51   ` Denis Excoffier
2022-05-29 21:25 ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=928d1480-0d28-2487-beda-269a4660cb28@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).