Sign in to follow this  
Followers 0
Kondro

Determine Windows 7 x86 or x64

4 posts in this topic

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



#2 ·  Posted (edited)

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

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

thank you all!

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  
Followers 0