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.Is64BitOperating
For CPU you can use WMI and get AddressWidth. A sample of VBScript can be found here