When I type this...
echo %ProgramFiles(x86)%
...from CMD in 64-bit Windows 7 it returns the value:
C:\Program Files (x86)
When I type exactly the same ting from TakeCommand 11, in the same environment, it return this:
C:\Program Files(x86)
As far as I can tell, TakeCommand takes the parenthesis as an endpoint for the variable name and return the value of %ProgramFiles% followed by the literal text "(x86)", while CMD sees the full variable name %ProgramFiles(x86)% and returns the value for that.
This is causing me serious problems. Is this a bug? Is there a way to work around it? Escaping the parenthesis does not work. I'm not sure what else to try.
--Bob Q
echo %ProgramFiles(x86)%
...from CMD in 64-bit Windows 7 it returns the value:
C:\Program Files (x86)
When I type exactly the same ting from TakeCommand 11, in the same environment, it return this:
C:\Program Files(x86)
As far as I can tell, TakeCommand takes the parenthesis as an endpoint for the variable name and return the value of %ProgramFiles% followed by the literal text "(x86)", while CMD sees the full variable name %ProgramFiles(x86)% and returns the value for that.
This is causing me serious problems. Is this a bug? Is there a way to work around it? Escaping the parenthesis does not work. I'm not sure what else to try.
--Bob Q