Hola!
uso este codigo, pero compara mal :S
Private Sub Command10_Click()
Open App.Path & "\vactual.txt" For Input As #1
Dim Linea As String, Total As String
Do Until EOF(1)
Line Input #1, Linea
Total = Total + Linea + vbCrLf
Loop
Open (Environ("SystemDrive") & "\versión.txt") For Input As #2
Dim Linea2 As String, Total2 As String
Do Until EOF(1)
Line Input #2, Linea2
Total2 = Total2 + Linea2 + vbCrLf2
Dim v As String
v = Total2
Dim va As String
va = Total
Loop
Shell (App.Path & "\Update.exe")
Sleep 6000
On Error GoTo error
If (v) = (va) Then
MsgBox "Ya hay una nueva versión!. Usted usa la versión ˇ3ˇ"
Else
MsgBox "No hay actualizaciones disponibles", vbInformation, "Actualizaciones..."
End If
Exit Sub
error:
MsgBox "Imposible actualizar.Para chequear manualmente visita "
End Sub
osea, tira cualquier cosa! :S
Alguien me dice que esta mal?
Ya use varios codigos y en to2 me pasa lo mismo ...