Results 1 to 2 of 2

Thread: FTP

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    10

    Unhappy

    Im new to VB and i want to know is there a way to put pauses between ftp commands.

    Ex.
    login
    pause (for a few seconds)
    cd \blahblah
    pause (for a few seconds)
    get blahblah.txt

    well you get my point.

    thx all in advance.

  2. #2
    Addicted Member JasonGS's Avatar
    Join Date
    May 2000
    Location
    California
    Posts
    155
    Well, you could write a PAUSE function (see code). The one below supports milliseconds, so if you want to wait 2 and a half seconds between commands then use GoSleepy 2.5

    Hope this helps...
    Code:
    Public Function GoSleepy(MSeconds)
        Dim StartTimer As Long
        StartTimer = Timer
        Do Until Timer > StartTimer + MSeconds: DoEvents: Loop
    End Function

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