How to check if a binary is 32 or 64 bit on Windows?
Problem
Is there an easy way to check if a binary is 32 or 64 bit on Windows? I need to check before I move the program to a 32bit machine and experience a spectacular failure.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: How to check if a binary is 32 or 64 bit on Windows?
After examining header values from Richard's answer, I came up with a solution which is fast, easy, and only requires a text editor. Even Windows' default notepad.exe would work. Open the executable in a text editor. You might have to drag-and-drop or use the editor's dialog, because Windows doesn't show option in the context menu for executables. Check the first printable characters after the first occurrence of . This part is most likely to be surrounded by at least some whitespace (could be …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix