Results 1 to 3 of 3

Thread: Winsock FTP Client

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    1

    Question

    I am trying to create a simple ftp client using the winsock control. I am unable to find a way to detect when a server message (of multiple lines) is finished sending.

    for example when you login to ftp.microsoft.com:

    220 cpmsftftpa03 Microsoft FTP Service (Version 5.0).
    USER anonymous
    331 Anonymous access allowed, send identity (e-mail name) as password.
    PASS [email protected]
    230-This is FTP.MICROSOFT.COM. Please see the

    230-dirmap.txt for more information.
    230 Anonymous user logged in.


    how would i detect that the 3rd line is the last 230 being sent? (The number and message is different for every server)

    Please Help!
    thanks

  2. #2
    Guest
    The last one is the one without the -
    230-This is FTP.MICROSOFT.COM. Please see the
    230-dirmap.txt for more information.
    230 Anonymous user logged in.


  3. #3
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Well you don't have to check when the last line has been sent, all you can do is a DoEvents or a DoWhile Loop or even the Do Until routine between each operation and it should fix any Still Executing last request error that i think you are getting.
    If you need any further help just shout.

    Gl,
    D!m
    Dim

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