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:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; q=dns; s=default; b=yBEn4QJ savOKPqS0ejYiI5Kg1FkhUR5hgCIFOfKcnblmMOA7GM7nAmomWbUwCuAbMEvQjsl ukXlutDIOcOC7Zb+VkeFhXUUSBF1WnK49rBLew+chPIiO3gwNAXmnLA8+gf0R0/j TW6CbiTvExRBfA1Fl+oDC/ss1gAnTu5WtrRQ= 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:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=default; bh=Tmc+ulw2cJ4P2 itnuNb0ZdGa6r4=; b=wQGRZcTiQhuIuWeEZTiL0obhVQnOGWf3l5MZBhL8CJ5Ax MjkfGFFlQYXmeixMs8+6mEcJvZGriDTwku4DmgjEuHNev9v+TbwJPnih+SZ9562H S0AUYRrXsCX63y0aF93A/+nLKbweWHNyx7xCBjy5TlBbTVQY2BmHHBaQs4pWLU= 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=-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 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 MIME-Version: 1.0 References: <089bb243-1dbb-048a-39aa-f54048a39e26 AT ssi-schaefer DOT com> <20190806154154 DOT GR11632 AT calimero DOT vinschen DOT de> In-Reply-To: <20190806154154.GR11632@calimero.vinschen.de> From: Bill Stewart Date: Tue, 6 Aug 2019 09:47:02 -0600 Message-ID: Subject: Re: How to query the value of %SystemDrive% in an empty environment? To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes 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