Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checking if file is 32bit or 64bit - on Windows

I'm compiling a program on my 64bit machine, but I'm not sure if it produces 32-bit or 64-bit output.. How can I check if a file is 32bit or 64bit on Windows?

like image 965
stiank81 Avatar asked Apr 21 '10 12:04

stiank81


People also ask

How do you check if a file is 32bit or 64bit?

Just run it and have a look at the Processes tab in Windows Task Manager. If there is a *32 suffix after the process name, it's 32-bit, otherwise it's 64-bit (provided you're on a 64-bit OS).

How do I know if my file is x86 or x64?

Open the .exe file using Notepad to check its headersThe letter that follows the PE header tells you if the file is 32-bit or 64-bit. 32-bit (x86) programs would have PE L as the header. 64-bit (x64) programs would have PE d† as the header.


2 Answers

You can use GNUfile for windows.
You can run the app thru PEID Lastly (and preferred- less room for error) With either Visual Studio C++ (at least express edition minimum) or the Platform SDK installed you can use dumpbin /headers to look at the PE header values.

The first value in the file header tells you the architecture: either 0x14C for x86 or 0x8664 for x64

like image 163
Jim B Avatar answered Sep 29 '22 11:09

Jim B


Just run it and have a look at the Processes tab in Windows Task Manager. If there is a *32 suffix after the process name, it's 32-bit, otherwise it's 64-bit (provided you're on a 64-bit OS).

like image 29
Stefan Schultze Avatar answered Sep 29 '22 11:09

Stefan Schultze