public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Program files environmental variables
@ 2021-11-23  9:02 john doe
  2021-11-23  9:52 ` Csaba Raduly
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: john doe @ 2021-11-23  9:02 UTC (permalink / raw)
  To: cygwin

Cygwins,

Is there a way to get the value of PROGRAMFILES(x86) and PROGRAMW6432 in
Bash:

$ echo $PROGRAMFILES; echo "$PROGRAMFILES(x86)"; echo $PROGGRAMW6432
C:\Program Files
C:\Program Files(x86)

$ cmd.exe /C "echo %PROGRAMFILES% %PROGRAMFILES(x86)% %PROGRAMW6432%"
C:\Program Files C:\Program Files (x86) C:\Program Files


PROGRAMFILES works in Bash but not the other two.

I could not find anything relevent in the archive or when googling.

--
John Doe

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-11-23 18:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-23  9:02 Program files environmental variables john doe
2021-11-23  9:52 ` Csaba Raduly
2021-11-23 10:40   ` Lemures Lemniscati
2021-11-23 13:10 ` Eliot Moss
2021-11-23 15:15   ` john doe
2021-11-23 15:27     ` Eliot Moss
     [not found] ` <DB9PR08MB6842C067DA1DB291FBD666A0E9609@DB9PR08MB6842.eurprd08.prod.outlook.com>
2021-11-23 15:11   ` john doe
2021-11-23 18:07 ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).