Jump to content
Sign in to follow this  
Kondro

Determine Windows 7 x86 or x64

Recommended Posts

Kondro

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?

Thanks.

Share this post


Link to post
Share on other sites
Chimaera

Try this

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

MsgBox(0, "OS Test", $CPUArch)
Edited by Chimaera

Share this post


Link to post
Share on other sites
JLogan3o13

Hi, Kondro. Try this to get you started:

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

There is plenty more in the helpfile :)


√-1 2^3 ∑ π, and it was delicious!

Share this post


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
Sign in to follow this  

×