Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

check OS and processor is 32 bit or 64 bit?

Tags:

vb6

wmi

I want vb6 code to check OS is 32 bit or 64 bit and also processor is 32 bit or 64 bit.So please help me to get these codes. In vb.net i can use Environment.Is64BitOperatingSystem Property and it works only in .net 4.0 and above. But how can i get these information in vb6?

like image 428
IT researcher Avatar asked Feb 17 '23 23:02

IT researcher


1 Answers

For CPU you can use WMI and get AddressWidth. A sample of VBScript can be found here

like image 95
Mache Avatar answered Apr 26 '23 21:04

Mache