Results 1 to 2 of 2

Thread: uploading files with inet control

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    1

    Exclamation

    I need my aplication sends three files to a server. I put the code:

    Private Sub cmdPublish_Click()

    With Inet1
    .URL = "ftp://ftp.thedomain.com"
    .UserName = "username"
    .Password = "password"
    .Execute , "cd /www/htdocs/some_dir"
    .Execute , "PUT " + App.Path + "\file1.txt file1.txt"
    .Execute , "PUT " + App.Path + "\file2.txt file2.txt"
    .Execute , "PUT " + App.Path + "\file3.txt file3.txt"
    .Execute , "CLOSE"
    End With

    End Sub

    After the line .Execute , "cd /www/htdocs/some_dir" I get an error:
    Run-Time error '35764': Still executing last request

    How can I have the aplication wait between each of the .Execute instructions?

    Thank you very much !

  2. #2
    Guest
    Put a DoEvents in between each one so that it can do what it is suppose to before continuing on to do the next task.

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