18/05/09 19:15
.:ViRuS:.
forse questa? è vecchio il codice e non ricordo bene
SPERO SIA QUESTO :S
Function Exec(Oper As String) On Error GoTo GestioneErrori If Inet1.StillExecuting Then Exit Function Inet1.Execute , Oper Do While Inet1.StillExecuting ' This will wait until the inet execution completes DoEvents Loop Pause 1000 If F = True Then F = False Dir TimerUpdate.Enabled = True Inet1.Execute , "DIR" Do While Inet1.StillExecuting ' This will wait until the inet execution completes DoEvents Loop End If Exit Function GestioneErrori: End Function
Private Sub Inet1_StateChanged(ByVal State As Integer) If Inet1.StillExecuting Then Exit Sub On Error Resume Next Dim col As New Collection 'Pezzo di codice preso dal sito www.vbsimple.it Dim POSINVIO As Integer Dim RITORNO As String If (id = "DIR") And (State = icResponseCompleted) Then RITORNO = Inet1.GetChunk(1024, icString) POSINVIO = InStr(1, RITORNO, vbNewLine) While POSINVIO > 0 If Left(RITORNO, POSINVIO - 1) <> "" Then LstFile.AddItem Left(RITORNO, POSINVIO - 1) RITORNO = Mid(RITORNO, POSINVIO + 2) POSINVIO = InStr(1, RITORNO, vbNewLine) Wend id = "" End If Exit Sub
SPERO SIA QUESTO :S
aaa