1

This is undoubtedly a duplicate question, but my search skills have failed me.

How can I determine whether an app is 64-bit or 32-bit on Windows?

Ideally, I'd like to be able to do this on both 64-bit Windows XP and 64-bit Windows 7.

Thanks!

EDIT: thanks for the responses. Is there a way I can do this when the app is not running? For example, on Linux we've got "readelf"--a command line util to inspect binaries. Is there a comparable tool on Windows?

11

On x64 platform, in Windows Task Manager, 32-bit applications will have "*32" appended to their names. So:

firefox.exe *32
devenv.exe *32
svchost.exe

means that both Firefox and Visual Studio are 32-bit applications, whereas Windows Services Host is a 64-bit app.

On x86 platform, it's easy: 64-bit applications won't start.


To reply to your last edit, I don't think there is a tool shipped with Windows which does detect if an executable is a x64 or x86. Maybe third-party tools can do it (decompilers? ressource extractors?).

If you are a developer, you can also consider doing such a tool or use Visual Studio corflags. See an answer on StackOverflow for more details.

  • DAMN just beat me..... +1! – Campo Jul 20 '10 at 16:53
3

start taskmanager and look at the processes tab

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.