Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FTP From VFP
Message
From
19/02/2013 08:29:42
 
 
To
17/02/2013 10:38:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01566244
Message ID:
01566365
Views:
79
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform