Hi
I have a question to ENVIRON command
If I use environ('ProgramFiles'), I get 'c:\program files (x86)' on a german Windows7 64 Bit.
Digging a bit deeper, on a command line I get 2 values: 'c\program files' AND 'c:\program files (x86)'.
This behaviour seems by desing, because in fact there exist 2 environ variables ProgramFiles and ProgramFiles(x86) beginning with the same letters.
Is there a way to return only one value, means using no "Wildcards"?
Thanks for any ideas.
Thomas
0
Answers
But anyway, there are 2 different Environment variables as written in the init post.... :?
In a 32-bit cmd-shell you usually have
ProgramFiles=C:\Program Files (x86)
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
in a 64-bit cmd-shell you usually have
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
(That's for Windows 7 x64)
Regards
Thomas