• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

When the FTP fails...

HI Experts,
We have a VB6 application that works just fine transmitting our data.
But when the ftp goes down (for many reasons) or there is no service from our ISP; we experience troubles.

This may happen around five times a week.

So please if you can teach us how to control this kind of errors with VB6 code.
How do we realize the FTP is not working?? or is working properly??

Some source will be great.
Best regards,
0
RGuillermo
Asked:
RGuillermo
1 Solution
 
dttriCommented:
Hello,
You can use "On Error Goto" to control the error in VB application. You can view an example here:
http://www.handheld-basic.com/documentation/text/page_966.html
0
 
QueueItCommented:
It all depends on how you do your FTP transfers.

If you call a DOS batch file with commands and execute it you may have a hard time logging whether it was successful or not.

If you use a third party dll they will usually include some sort of error handling.

One of the components I've used successfully is NIBLACK.ASPFTP which you can download for free from 15 seconds (http://www.15seconds.com/issue/981203.htm). It includes instructions on how to use the component as well as some routines to determine if your commands were successful or not.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now