delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/05/13/15:43:44

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9344C397EC1C
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=SystematicSw.ab.ca
Authentication-Results: sourceware.org;
spf=none smtp.mailfrom=systematicsw.ab.ca
X-Authority-Analysis: v=2.4 cv=SMhR6cjH c=1 sm=1 tr=0 ts=627eb4de
a=oHm12aVswOWz6TMtn9zYKg==:117 a=oHm12aVswOWz6TMtn9zYKg==:17
a=IkcTkHD0fZMA:10 a=94nOnFI1EgyDtX4ev68A:9 a=QEXdDO2ut3YA:10
Message-ID: <928d1480-0d28-2487-beda-269a4660cb28@SystematicSw.ab.ca>
Date: Fri, 13 May 2022 13:43:25 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.0
Subject: Re: regedit fails with a pop-up
To: cygwin AT cygwin DOT com
References: <4A6F13C2-FD19-427A-B6E4-4DC4B198B0C2 AT Denis-Excoffier DOT org>
<579342583 DOT 2402190 DOT 1652467249328 AT mail DOT yahoo DOT com>
<1400080973 DOT 2413431 DOT 1652467302515 AT mail DOT yahoo DOT com>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Organization: Systematic Software
In-Reply-To: <1400080973.2413431.1652467302515@mail.yahoo.com>
X-CMAE-Envelope: MS4xfP5EeDT3EEtyN4BmR5nSTEmTxhVSSKkRzPwtYwoczahZtNd2NndGXwwnZejr36pJtCuTwHxCNbp7AH5xccKjwYPiFwibvtWzcsPdiPjEXnLo6Mo4OoPn
wfFyETAcHBALjMHOlBLvziY2ql6plZSWTMO0MbTnls7U0V1O2wdqbHfkCG9tJChd6TeXxRVCpx2xo7Lisdwhijf4jZyX1N8PAlI=
X-Spam-Status: No, score=-1165.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 24DJhiEX022879

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

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019