Sign in to follow this  
Followers 0
JRSmile

windows version?

3 posts in this topic

hi there i found that @OSVersion isn't very handy when it comes to the decision if a script can run on windows server or vista,

i found here a nice approach but it is not written in autoit?

http://www.codeproject.com/KB/system/XWinVer.aspx

does anyone have a similar approach done for autoit?


$a=StringSplit("547275737420796F757220546563686E6F6C75737421","")For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4)Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])))''Chr("a")&"HI"Next;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile;MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-)

Share this post


Link to post
Share on other sites



hi there i found that @OSVersion isn't very handy when it comes to the decision if a script can run on windows server or vista,

i found here a nice approach but it is not written in autoit?

http://www.codeproject.com/KB/system/XWinVer.aspx

does anyone have a similar approach done for autoit?

AutoIt can perform the DLL calls to get that information, as here: MSDN: GetVersionEx Function

You won't find all that info in one place, however. Several methods to get version, platform type, SP level, HotFix level, etc. will be required to get the full picture. Some of the functions even seem contradictory. The IsOS Function will only work on Win2K or later, but supports a query for OS_WIN98_GOLD = "Windows 98 exactly".

:D


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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