Results 1 to 2 of 2

Thread: FTP Problem ?

  1. #1

    Thread Starter
    Addicted Member Tengkorak's Avatar
    Join Date
    Nov 2006
    Posts
    240

    FTP Problem ?

    i want to put my file to ftp server, but i can't put to 3 file.

    code:
    Code:
    With Inet1
            .Cancel
            .Protocol = icFTP
            .url = "server"
            .UserName = "user"
            .Password = "pwd"
    
    
            .Execute , "PUT c:\customer.xml /customer.xml"
            .Execute , "PUT c:\product.xml /product.xml"
            .Execute , "PUT c:\order.xml /order.xml"
    End With
    error:
    Code:
    Still executing last request

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: FTP Problem ?

    You need to check the Inet StateChanged event, or call the StillExecuting function to check if it's done.

    Something like this

    Code:
    'exec 1
    Do While Inet1.StillExecuting
        DoEvents
        Sleep 50
    Loop
    
    'exec2 ...
    (you need to declare the Sleep API)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width