判断系统是64位还是32位的bat方法

  

if "%PROCESSOR_ARCHITECTURE%"=="x86" goto x86
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto x64
exit
:x64
rem 如果系统是64位的就用浏览器打开百度
explorer.exe http://www.baidu.com/
exit

:x86
rem 如果系统是32位的就用浏览器打开新浪
explorer.exe http://www.sina.com.cn/

  

原文地址:https://www.cnblogs.com/JoePotter/p/7732164.html