32位OS或64位OS [英] 32 Bit OS or 64 Bit OS

查看:105
本文介绍了32位OS或64位OS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否可以使用vb.net代码检查计算机是32位还是64位?

我只想在消息中显示结果。



请指教。

Hi,
Is it possible to check if computer is 32 bit or 64 using vb.net code?
I just want to display the result in a message.

Please advise.

推荐答案

Environment.Is64BitOperatingSystem 

返回bool来回答你的问题;)



另外,

returns bool that answers your question ;)

Also,

Environment.Is64BitProcess

返回bool回答过程本身是否为64位

returns bool that answers whether the process itself is 64bit


请参见此处: http://stackoverflow.com/questions/336633/how-to-detect-windows-64-bit-platform-with-net [ ^ ]


这篇关于32位OS或64位OS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆