Environment Variable with ( in it
Posted: Fri Mar 04, 2011 5:17 am
Ok folks, in Windows, how do I get the value of the environment variable, ProgramFiles(x86)? Put $ProgramFiles(x86) in the message box gives: Message execution error:\nError description: Function: error in function handler.
I tried...
the Unix way: $(ProgramFiles(x86))...nah,
a Perlish way: ${ProgramFiles(x86)}...nah,
if Windows had a brain way: $"ProgramFiles(x86)"...nah,
single quote way: $'ProgramFiles(x86)'...nah, nah, nah. <US_local_joke>At this point a white duck shows up to save the day.</US_local_joke>
Finally, shell("echo %ProgramFiles(x86)%") worked, but it flashes up a distracting cmd prompt window. Maybe there is a better way?
I tried...
the Unix way: $(ProgramFiles(x86))...nah,
a Perlish way: ${ProgramFiles(x86)}...nah,
if Windows had a brain way: $"ProgramFiles(x86)"...nah,
single quote way: $'ProgramFiles(x86)'...nah, nah, nah. <US_local_joke>At this point a white duck shows up to save the day.</US_local_joke>
Finally, shell("echo %ProgramFiles(x86)%") worked, but it flashes up a distracting cmd prompt window. Maybe there is a better way?