Fork me on Gitee

判断系统是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/

  

posted @ 2017-10-25 20:27  JoePotter  阅读(1845)  评论(1编辑  收藏  举报
``