PDA

Click to See Complete Forum and Search --> : Winsock FTP Client


stu-e
Oct 28th, 2000, 11:01 AM
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 user@server.com
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

Oct 30th, 2000, 07:19 AM
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.

Dim
Oct 30th, 2000, 03:57 PM
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