Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: Unable to login to a site using dart FTP
pragya
pragya_tiwari@3com.com

From: hyderabad, India
Posts: 1
Member Since: 06/28/06
posted June 28, 2006 10:24 AM

Hi,

I am facing a problem if i try to do FTP from command prompt then i am able to connect to that site but if i try to do a "FTP1.Login" to the same site using my application i am unable to connect .

Have anybody faced such a problem.

My code is organized like this

FTP1.timeout=0 so that its non-blocking
and i have used a timer at the expiry of which we say that we are not able to login and if in between we are able to connect to that site then we can catch it in "FTP1_progress" event and we are disabling the timer and saying "we are connected"
Amit

From: Rome, NY USA
Posts: 315
Member Since: 03/15/06
posted June 29, 2006 1:49 PM

Hello Pragya,

I have read your query and it is my understanding that you are looking to use FTP Tool in non-blocking mode.

If this is the said scenario, then please note that I have used a timer in my application along with the non-blocking code. I have been able to login to the FTP server and also issue the different commands.

Here is my sample code:

Private Sub Command1_Click()
Ftp1.TimeOut = 0
Ftp1.Login "servername", "username", "password"
End Sub

Private Sub Ftp1_Progress(ByVal FtpCmd As DartFtpCtl.CommandConstants, ByVal Status As DartFtpCtl.StatusConstants, ByVal Reply As String, ByVal Count As Long, ByVal Size As Long)


If Status = ftpOk Then
Select Case FtpCmd
Case ftpPassword
Ftp1.Store "remotefilename", "localfilename"

Case ftpStore
Ftp1.Logout
End Select
End If

End Sub

I hope this will be of help. In case, I have misunderstood the issue or you need further assistance/clarifications, please feel free to write back and I would be glad to assist you.

Have a nice day ahead.

Best Regards,
Amit
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX