Results 1 to 2 of 2

Thread: Mutliple executions using Inet?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Location
    Atlanta
    Posts
    104

    Question

    I want to execute multiple ftp commands using the Inet component.

    The code looks like this

    Inet1.Execute , "GET standard.eb2 c:\standard.eb2"
    Inet1.Execute , "GET includes.eb2 c:\includes.eb2"
    Inet1.Execute , "GET users.eb2 c:\users.eb2"

    But I get an error message that says "Still executing last request."

    What is the best way to remove this problem?..

    I've tried checking the Inet state to make sure it was finished, but couldn't really do anything with that.

    Any Ideas?

    Jeremy

  2. #2
    Guest
    Add a DoEvents to finish a process before continuing to the next.

    Code:
    Inet1.Execute , "GET standard.eb2 c:\standard.eb2" 
    DoEvents
    Inet1.Execute , "GET includes.eb2 c:\includes.eb2" 
    DoEvents
    Inet1.Execute , "GET users.eb2 c:\users.eb2
    DoEvents

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