How to Find the largest version of a list of version numbers? ;For TEST
DirCreate("1.2.6.4")
DirCreate("1.1.2.4")
DirCreate("1.0.3.4")
DirCreate("1.5.0.4")
DirCreate("1.6.7.4")
;For TEST END
#include <Misc.au3>
#include <File.au3>
Local $sListVer,$sListFile = _FileListToArray(@ScriptDir, "*", 2, 0)
For $x = 1 To UBound($sListFile) - 1
If StringInStr($sListFile[$x],".") Then
ConsoleWrite($sListFile[$x]&@CRLF)
$sListVer&=$sListFile[$x]&"|"
EndIf
Next
Local $sVerList = StringSplit($sListVer,"|")
If UBound($sVerList) > 1 Then
For $x = 1 To UBound($sVerList) - 1
ConsoleWrite($sVerList[$x]&@CRLF)
;ConsoleWrite(_VersionCompare ( "", "" )&@CRLF)
Next
EndIf
;For TEST
DirRemove("1.2.6.4")
DirRemove("1.1.2.4")
DirRemove("1.0.3.4")
DirRemove("1.5.0.4")
DirRemove("1.6.7.4")
;For TEST END#