how to get program files x86 env variable?

前端 未结 4 1030
粉色の甜心
粉色の甜心 2020-11-29 21:13

I would like to know how I can display the location of Program Files (x86) in command prompt. I\'m using Windows 7 64bit.

I\'ve tried:

echo %programf

4条回答
  •  一向
    一向 (楼主)
    2020-11-29 21:47

    IMHO, one point that is missing in this discussion is that whatever variable you use, it is guaranteed to always point at the appropriate folder. This becomes critical in the rare cases where Windows is installed on a drive other than C:\

提交回复
热议问题