Recently one of my colleague gave me two DLLs of same name and told me two find out which one is 32-bit and which one is 64-bit.
To find out this information I downloaded the Sigcheck utility from Windows Sysinternals. Sigcheck is a command-line utility that shows file version number, timestamp information, and digital signature details, including certificate chains.
Through this we can also find out machine type of executable images, whether 16-bit, 32-bit, or 64-bit.
For eg. to find out the build type of C:\Windows\System32\appmgr.dll DLL we can run following command
sigcheck.exe -q C:\Windows\System32\appmgr.dll
You will get the following output in which MachineType is important for us.
c:\windows\system32\appmgr.dll: Verified: Signed Signing date: 2:33 PM 11/20/2010 Publisher: Microsoft Windows Description: Software Installation Snapin Extenstion Product: Microsoft« Windows« Operating System Prod version: 6.1.7600.16385 File version: 6.1.7600.16385 (win7_rtm.090713-1255) MachineType: 64-bit
If the MachineType is 64-bit, it means that image is for 64-bit machines. If the MachineType is 32-bit, it means that the image is for 32-bit machines.
Note : To run the above command you need to download Sigcheck utility and need to put sigcheck.exe in C: drive. You can paste it anywhere but in such case you need to adjust the path.
Hope this will also help you guys to find out the file bit version in Windows.