Jump to content

Determine Windows 7 x86 or x64

Recommended Posts

Im trying to write into a script logic to determine if the current OS is Windows 7 x64 vs. any other operating system. It seems the Windows 7 build numbers are the same for x86 and x32 (7600 or 7601 for SP1) Anyone know how I can accomplish this?


Link to post
Share on other sites

Try this

If @CPUArch = "X86" Then
    $CPUArch = "32-bit"
ElseIf @CPUArch = "X64" Then
    $CPUArch = "64-bit"

MsgBox(0, "OS Test", $CPUArch)
Edited by Chimaera
Link to post
Share on other sites
  • Moderators

Hi, Kondro. Try this to get you started:

MsgBox(0, "", @OSVersion & " " & @OSArch)

There is plenty more in the helpfile :)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...