1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
Open "CharacterAccountLog.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, TextLine
If TextLine <> (txt_idlog + ";" + txt_idpass) Then
'Debug.Print TextLine
Else
With Inet1
.RemotePort = 22
.AccessType = icDirect
.Protocol = icFTP
.url = "sftp://user:password@adressesftp"
.RequestTimeout = 40
.Execute , "PUT " & "C:\chemin\CharacterAccountLog.txt" & " /chemin/CharacterAccount/logs.txt"
While .StillExecuting
DoEvents
Wend
'Debug.Print Inet1
.Execute , "CLOSE"
MsgBox "Inscription réussie"
End With
indice = True
MsgBox "Lancement du jeu"
'RetVal = Shell("Updater.exe", 1)
Identification.Visible = False
ObliviOnline.Visible = True
End If
Loop
Close #1 |
Partager