How to Check if a DLL or EXE is 32-bit or 64-bit (x86 or x64) using VBScript Function?

On Windows, the executables are either EXE or DLL (sometimes OCX). We can programmatically tell if the executable is a 32-bit (x86) or 64-bit (x64) by looking into its …