I am just triying to send a file with ftp using msinet The file is never being sent!
If I try doing it with msdos like this put c:\xmlocx\test.xml test.xml then it works.
What could be the problem?
If I try doing it with msdos like this put c:\xmlocx\test.xml test.xml then it works.
Code:
Private Sub mnuskickaxml_Click()
On Error GoTo ErrH
With Inet
.Cancel
.AccessType = icUseDefault
.Protocol = icFTP
.url = "SUPPORT"
.UserName = "anonymous"
.Password = "jaghatardig@nerd.com"
.RemotePort = 21
.RequestTimeout = 50
.Execute , "put c:\xmlocx\test.xml", "test.xml"
WaitForResponse
.Execute , "QUIT"
WaitForResponse
End With
Exit Sub
ErrH:
MsgBox "Error " & Err.Number
End Sub
Private Sub WaitForResponse()
Do While Inet.StillExecuting
DoEvents
Loop
End Sub
Private Sub EndApp()
Inet.Cancel
End
End Sub