Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FTP From VFP
Message
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:
01566396
Vues:
77
>>>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.
>
>That sounds interesting, Thanks Rick.

I've used the CURL thingy and of course the stuff from WestWind - both of which were fine, however in some cases neither of those will work. If you're trying to connect to an sFTP on a mainframe (in my case it was an AS/400 I think) then neither of those will work. To get around that problem I use WinSCP - which has a built in scripting language - and then I just run the script using RUN/N or oshell.
ICQ 10556 (ya), 254117
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform