MCP 0 Posted October 13, 2007 If you run _INetUpdater() or similar functions, you probably find this UDF may help you. Happy AutoIt to everyone! expandcollapse popup;=============================================================================== ; ; Description: Check if, in two strings reporting a version number each, ; the first one is newer than the second ; eg: when comparing downloaded updates ; ; Syntax: _IsFirstOneNewer($sSource, $sDest) ; ; Parameter(s): $sSource ; eg: '0.1.10.23' ; $sDest ; eg: '0.1.10.17' ; ; Requirement(s): $sSource and $sDest must be in the form number.number.number.number ; ; Return Value(s): On Success - True or False ; On Failure - False and @error is set to 1 ; ; Author: MCP, Aristotele.Skotos, aka ... ; ;=============================================================================== Func _IsFirstOneNewer($sSource, $sDest) ; FYI: newer means not equal too Local $bRC = False, _ $aSource = StringSplit($sSource, '.'), _ $aDest = StringSplit($sDest, '.') If 4 <> UBound($aSource) Or 4 <> UBound($aDest) Then SetError(1) Return $bRC EndIf For $i = 1 To 4 If Number($aSource[$i]) > Number($aDest[$i]) Then Return Not $bRC Next Return $bRC EndFunc ;==>_IsFirstOneNewer Share this post Link to post Share on other sites
Nahuel 1 Posted October 13, 2007 Dude, you got the wrong forum. And can't you just look at the numbers and see which one is bigger? Share this post Link to post Share on other sites
MCP 0 Posted October 13, 2007 Dude, you got the wrong forum.OOOOOPS !! Share this post Link to post Share on other sites
weaponx 16 Posted October 14, 2007 We just covered this recently here:http://www.autoitscript.com/forum/index.php?showtopic=54706 Share this post Link to post Share on other sites