Sample code –
Code: Select all
Debug GetEnvironmentVariable("CommonProgramFiles")
Debug GetEnvironmentVariable("CommonProgramFiles(x86)")
I have the x86 compiler version also installed and selecting the 5.22 LTS x86 compiler and running the same code I now get –C:\Program Files\Common Files
C:\Program Files (x86)\Common Files
C:\Program Files (x86)\Common Files
C:\Program Files (x86)\Common Files