Sign in to follow this  
Followers 0
Briandr

@OSArch question

3 posts in this topic

Hi,

If @OSArch = "X86" Then

Is this valid for detecting both XP and Win 7 x86 or do I need two separate commands?

I got a script and the If statement for this works for detecting XP, not so much for Win 7 x86. 

Thanks.

 

 

 

Share this post


Link to post
Share on other sites



 
Quote
@OSArch Returns one of the following: "X86", "IA64", "X64" - this is the architecture type of the currently running operating system.
Quote
@OSVersion Returns one of the following: "WIN_10", "WIN_81", "WIN_8", "WIN_7", "WIN_VISTA", "WIN_XP", "WIN_XPe",
    for Windows servers: "WIN_2016", "WIN_2012R2", "WIN_2012", "WIN_2008R2", "WIN_2008", "WIN_2003"".

so you need a combination  of both.

Share this post


Link to post
Share on other sites

Hi.

 

iirc, the Macro @OSArch returns the 32/64 bit version of your Windows installation.

 

It should do so, no matter, what @OSVersion you are using, and even the compilation target version for your script shouldn't matter (x86 or x64).

Look up the Macro Reference of Autoit.

 

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

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