Using %PROGRAMFILES(x86)% on Windows OS 32bit

According to this the environment variable %PROGRAMFILES(x86)% is only available on 64-bit systems.

However, if you are on a 64-bit system and use %PROGRAMFILES%, the result you get depend on whether the process requesting the environment variable is 32-bit or 64-bit.

So from a 64-bit process on a 64-bit system you would get C:\Program Files, from a 32-bit process on a 64-bit system you would get C:\Program Files (x86), and from a 32-bit process on a 32-bit system you would get C:\Program Files.

If this doesn’t help, perhaps you can comment or edit your original question to make it specific what you are trying to do. As it currently stands, the answer to your question is “No”.

Leave a Comment