Why %processor_architecture% always returns x86 instead of AMD64

后端 未结 9 2279
被撕碎了的回忆
被撕碎了的回忆 2020-11-29 03:03

I am trying to retrieve the environment variable to detect whether the system is 32 or 64 bit. But on 64 bit server the environment variable %processor_architecture%

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 03:23

    Apologize for the grave dig. However, the processor architecture environmental variable is accessible via powershell ...

    $env:PROCESSOR_ARCHITECTURE
    

提交回复
热议问题