This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to query the value of %SystemDrive% in an empty environment?


On Aug  6 17:20, Michael Haubenwallner wrote:
> Hi,
> 
> using 'env -i' to create an empty environment, the SYSTEMROOT and WINDIR
> environment variables are preserved (or recreated):
>  $ /usr/bin/env -i /usr/bin/env
>  SYSTEMROOT=C:\Windows
>  WINDIR=C:\Windows
> 
> And with cygpath, there is the -A, -D, -H, -O, -P, -S, -W and even -F flags
> to query the values for various directories.
> 
> Now what I've failed to find is how to query the value for the "SystemDrive"
> environment variable.

Just strip it off SYSTEMROOT?


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]