Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

If WinVista or later...?

$
0
0
Hello. Im looking to make an IF statement with condition "IF WinVista OR later...". I know I can write it like:

[ autoit ]      
If @OSVersion="Win_Vista" OR @OSVersion="Win_7" OR @OSVersion="Win_8"
but i don't want to do it like that. Won't be compatible with future OS.

I also don't want to make:

[ autoit ]      
If NOT @OSVersion="Win_XP" OR @OSVersion="Win_XPe" OR @OSVersion="Win_2000"
because I don't want to exclude every single OS ever made. There has to be a better way.

I'm particulary interested in "or later..." part.


Hm... Maybe @OSBuild? If the build number increases with each OS, that could be a way. But I don't know that for certain.

Viewing all articles
Browse latest Browse all 12506

Trending Articles