When the FTP fails...

Posted on 2006-05-06
Last Modified: 2010-04-17
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,
Question by:rguillermo
    LVL 7

    Expert Comment

    You can use "On Error Goto" to control the error in VB application. You can view an example here:
    LVL 2

    Accepted Solution

    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 ( It includes instructions on how to use the component as well as some routines to determine if your commands were successful or not.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now