Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FTP From VFP
Message
De
19/02/2013 08:29:42
 
 
À
17/02/2013 10:38:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01566244
Message ID:
01566365
Vues:
78
>We have been running an FTP application for over 10 years. It uses an ActiveX control that has worked well but now it's starting to hiccup with later O/S versions, and I want to replace it.
>I checked around the web and found several postings regarding FTP from VFP but most were posted a long time ago.
>I'd like to avoid using an ActiveX if possible.
>Any suggestions?


I wrote an implementation recently that uses MIT's CURL executable as a command-line tool. It has a wide array of protocols and supports everything necessary for basic FTP, secure FTP, and more. It is also actively maintained with source code. I wrote a small wrapper DLL which intercepted the STDOUT and STDERR to capture the output from the program and then post-process it in VFP. The same thing could be achieved by using "curl commands >> output.txt" and then reading in output.txt. However, using the wrapper I am able to parse the file in real-time and obtain percentages, etc.

In any event ... CURL worked well.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform