The problem with the OP's code is that it hard codes a location, and that path is valid only on x64 systems. Wrapping it in quotes will make the code work, but only for a specific system configuration.

The code I posted uses the environment vars to determine the OS architecture and 32-bit PF path. This method will work on any system regardless of where the program files folder is, and will work on all architectures.

The resulting value will be the 8.3 folder name of the 32-bit program files path.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D