Network.DownloadFile("ftp://XX.XX.XX.XX/update/Management/Update/update.txt", "D:\\update.txt" ,"XX" ,"XX" ,True, 100000, True)
Dim str As String = publishdate
Dim strs As String = FileSys.ReadAllText("D:\\update.txt" )
Dim index As Integer = str.lastindexof(":")
Dim s As String = str.remove(Index)
Dim index1 As Integer = strs.lastindexof("|")
Dim s1 As String = strs.remove(Index1)
If s1 <> s
messagebox.show("检测到目前程序版本不是最新版本,请升级后再试!")
Syscmd.Project.Exit()
End If