| Inet ftp SEND Question -
06-04-2007, 08:52 AM
Hi,
i want to upload a file from my computer to a ftp.....
this is the code:
Inet.RemoteHost = "localhost" '(not ftp:// in front of it)
Inet.RemotePort = "21"
Inet.UserName = "user"
Inet.P***word = "p***word"
Inet.Execute , "CD dir1" & vbCrLf
Do While Inet.StillExecuting
DoEvents
Loop
Inet.Execute , "CD dir2" & vbCrLf
Do While Inet.StillExecuting
DoEvents
Loop
Inet.Execute , "SEND " & App.Path & "\file.xml file.xml" & vbCrLf
Do While Inet.StillExecuting
DoEvents
Loop
I tryed without the & vbcrlf and played with SEND and PUT but that did not
work either....
can anyone tell me whats wrong with this code? OR make changes for me??
A very confused man named Peter...... |