请问如何判断两文件版本号大小?
两个文件版本号分别是6.0.0.89和6.0.0.100(或6.0.1.89),请问如何准备地判断6.0.0.100(或6.0.1.89) 比6.0.0.89新呢?_VersionCompare
你试一下这个函数看一下 #include <Misc.au3>
$b = _VersionCompare ( "6.0.0.100", "6.0.0.89" )
If $b = 1 Then
MsgBox(0,"6.0.0.100","大")
ElseIf $b = -1 Then
MsgBox(0,"6.0.0.89","大")
ElseIf $b = 0 Then
MsgBox(0,"版本","一样大")
Else
MsgBox(0,"","版本错乱比较不了")
EndIf
页:
[1]