How to query the value of %SystemDrive% in an empty environment?
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Aug 6 15:53:00 GMT 2019
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 "SystemDrive"
> > > environment variable.
> >
> > Just strip it off SYSTEMROOT?
>
> 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
--
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20190806/f4c9aa67/attachment.sig>
More information about the Cygwin
mailing list