Using this simple test batch script:
@echo off
echo %ProgramFiles%
echo %ProgramFiles(x86)%
is my output:
"C:\Program Files"
C:\Program Files (x86)
One variable is enclosed in quotes while the other isn't? Is this a bug of some sort, or a simple oversight on my behalf?
Strange, I can't reproduce this on my machine (Windows Vista 64-bit SP 1). My output is
Are you sure you didn't insert quotes in your echo statement?
On W2k8 x64 I get:
If you type "set" you can see what the environment variables are. I get: