dimmm » 26.07.2008 (Сб) 15:12
вот исходник который вродь не работает...
Dim strUrl As String
Dim strSource As String
Dim strDest As String
Private Sub Command1_Click()
strUrl = txtURLbox.Text
strSource = txtServerPath.Text
strDest = txtLocalPath.Text
Inet1.Execute strUrl, "GET " & strSource & " " & strDest
End Sub
Private Sub Inet1_StateChanged(ByVal State As Integer)
Dim strAllText As String
Dim strLine As String
Select Case State
Case icError
If Inet1.ResponseCode = 80 Then
MsgBox "file exist! new name:"
Else
MsgBox Inet1.ResponseInfo, , "unknown error"
End If
Case icResponseCompleted
If Option1.Value = True Then
Open strDest For Input As #1
Do Until EOF(1)
Line Input #1, strLine
strAllText = strAllText & strLine & vbCrLf
Loop
Close #1
txtNote.Text = strAllText
Else
txtNote.Text = ""
MsgBox "completed", , strDest
End If
End Select
End Sub