From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9409 invoked by alias); 6 Aug 2019 15:53:13 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 9401 invoked by uid 89); 6 Aug 2019 15:53:13 -0000 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 Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.17.24) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Aug 2019 15:53:12 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MQ5jC-1hhujt2Wem-00M62J for ; Tue, 06 Aug 2019 17:53:09 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 006BBA80649; Tue, 6 Aug 2019 17:53:08 +0200 (CEST) Date: Tue, 06 Aug 2019 15:53:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: How to query the value of %SystemDrive% in an empty environment? Message-ID: <20190806155308.GS11632@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <089bb243-1dbb-048a-39aa-f54048a39e26@ssi-schaefer.com> <20190806154154.GR11632@calimero.vinschen.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) X-SW-Source: 2019-08/txt/msg00076.txt.bz2 --h2J70RNbM0WNXG3M Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 517 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" Content-length: 833 -----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--