Inet ftp SEND Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dartszeeland.tk

    Inet ftp SEND Question

    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.Password = "password"

    Inet.Execute , "CD dir1" & vbCrLf
    Do While Inet.StillExecu ting
    DoEvents
    Loop

    Inet.Execute , "CD dir2" & vbCrLf
    Do While Inet.StillExecu ting
    DoEvents
    Loop

    Inet.Execute , "SEND " & App.Path & "\file.xml file.xml" & vbCrLf
    Do While Inet.StillExecu ting
    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......


Working...