X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=klZQjDbDVl644bdgKbgp4W/NjNLYQpUQtGY+qClk/p4nvG6WY+/hv Y6czdtERYVUj8LTJR51xoycOCuQ+8b7x/RI0kgfCIFSJ1DbSZyBed6P1Tjad951J QH0nkGvx3oPv48FxAqQ327nN0ej/4/CkNR9nt1MdrFD3WSKu7WvVHQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=kiT+ymjuVhJbJZ7M2lFcV9qcIYM=; b=cZ7rmG2hV1Yq3JcXAQUCdljj5VJG ReAkYeDpqjcVAq7uSUN168jPiJLKA01tESZDYGwfXTPR6GQVQnMFvY68yi0cIgY7 D5A8bKwYbi4a9rgYmllsIFmuiVIiN7cseGU3Dk/+X6k4uotMRCUp/vTuo5wX2kmy VZtMvrTWZgbGEac= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-104.3 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*F:D*cygwin.com X-HELO: mout.kundenserver.de Date: Tue, 6 Aug 2019 17:53:08 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: How to query the value of %SystemDrive% in an empty environment? Message-ID: <20190806155308.GS11632@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <089bb243-1dbb-048a-39aa-f54048a39e26 AT ssi-schaefer DOT com> <20190806154154 DOT GR11632 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="h2J70RNbM0WNXG3M" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) --h2J70RNbM0WNXG3M Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Aug 6 09:47, Bill Stewart wrote: > On Tue, Aug 6, 2019 at 9:42 AM Corinna Vinschen wrote: > > > > On Aug 6 17:20, Michael Haubenwallner wrote: > > > Now what I've failed to find is how to query the value for the "Syste= mDrive" > > > environment variable. > > > > Just strip it off SYSTEMROOT? >=20 > IIRC, that will not give the expected value if Windows is installed on > a different drive. How so? SYSTEMDRIVE is the drive SYSTEMROOT is installed on, no? Corinna --=20 Corinna Vinschen Cygwin Maintainer --h2J70RNbM0WNXG3M Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl1JomQACgkQ9TYGna5E T6AKVw/+K1qiwaPC89mUJ2xV1HJqfbjiNPB7pMgff2t02sL8qU7tgD8iB0HYrfzk AB5dLEBkVDRP5z3CBh8AtrEhgxrxbdOOEcE40Gw1ntR8FQ12QxsbbMI11heOvJYS Eoc8+7W9iBlUVueihrIDax8lxCnGgLYnl8FEYPEhWQ/KAyBFR9XjybZOGzB17fWL Avtz8QhEVz6umucBEbAH7anEAr05tV6MvRt3QX4YnYb8n1uWJd0mK83lg7H7DBNx Xcv7OrGvtrRUMUgqfJUi1wvy7jgJRhd+8nQ/WqgjMy3nyMMln4TZT4xKKG4JfwEb fciu8o1eKI11p2+upqEtxCxDCi59yWWWp08iRyOYYotN3wboLvzPL4vI12T46zRM HBc8KJf2aJhQWgjzy9Sh1ZW4Jk2ruigzt1yqBPbrc6MeMnJj/uC6gkMl902BS/lI 6gzuSCd+brnxu0HfeBb1kA4VTms5waaaan/PYA95Cdd49gwGvxskX12bG6MNOfJz qBlDHWNLHWuxCtyawTgqu2cA+11b49Fl+WwmmaAnwfADZ92dhIGaDm61AtdFs6x0 yvpLe9nv4rzC6B2A+5mwOY9t7zyMFYtjT2LTRYmfjlmW0EYYs8nJSbOFuT61G8Ll z1IU6CDua3x3ArfpSGg5/a1A/dByf3yux7y4hVSGNvlKn2zCgPk= =6Dn/ -----END PGP SIGNATURE----- --h2J70RNbM0WNXG3M--