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

  

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据