From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92103 invoked by alias); 6 Aug 2019 15:47:37 -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 92095 invoked by uid 89); 6 Aug 2019 15:47:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mout.gmx.com Received: from mout.gmx.com (HELO mout.gmx.com) (74.208.4.201) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Aug 2019 15:47:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com; s=dbd5af2cbaf7; t=1565106451; bh=7wIaDRxN/sve2NXM0mG4EpObTe34tBYqZqhP98/v2nY=; h=X-UI-Sender-Class:References:In-Reply-To:From:Date:Subject:To; b=YRbZ0z97uoKQATLM53mJjLHfsAJwTEbTfhDKeUwTlB6QIYcE1b6xcsJTHn6jBDiqO 2lYatFMqeCmniv+qsd+N6G6w1Cr1U36c5bXineDhkiuwURz52ftLguktHfIFf4y9K3 uXj496kID916tDfmwqvhMbCmwxftgqaVHYFIpeWA= X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79 Received: from mail-lj1-f170.google.com ([209.85.208.170]) by mail.gmx.com (mrgmxus002 [74.208.5.15]) with ESMTPSA (Nemesis) id 0M92VP-1i2QcI1iQv-00COPq for ; Tue, 06 Aug 2019 17:47:31 +0200 Received: by mail-lj1-f170.google.com with SMTP id i21so3396935ljj.3 for ; Tue, 06 Aug 2019 08:47:30 -0700 (PDT) MIME-Version: 1.0 References: <089bb243-1dbb-048a-39aa-f54048a39e26@ssi-schaefer.com> <20190806154154.GR11632@calimero.vinschen.de> In-Reply-To: <20190806154154.GR11632@calimero.vinschen.de> From: Bill Stewart Date: Tue, 06 Aug 2019 15:47:00 -0000 Message-ID: Subject: Re: How to query the value of %SystemDrive% in an empty environment? To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00075.txt.bz2 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 "SystemDrive" > > environment variable. > > Just strip it off SYSTEMROOT? IIRC, that will not give the expected value if Windows is installed on a different drive. Bill -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple