Answered by:
FTP Question

Question
-
Hi all,
I have a VFX program that is used to process some TXT files that reside in a web site.
In order to process them I have to download them via FTP form the web site, call the VFX program and after that upload the resulting files.
To do this I use a “DOS” bat file that does the following:1. calls DOS FTP with the download script
2. calls that VFX program
3. calls DOS FTP with the upload scriptThis works… but has the inconvenient of opening the DOS window.
Since the process runs every 5 minutes, it’s truly annoying to have all those DOS windows opening and closing.Is there a way to do this from inside the VFP program?
This VFP program runs without showing any window, the only part of the all process that I could make invisible to the user.One detail, the files to be downloaded can be very small or considerably large, so they may take some time to download and only after the download is completed the VFP program can start processing them.
Any help will most appreciated.
Thursday, February 9, 2012 2:06 AM
Answers
-
Hi,
Check below Freeware VFPConnection Library to Upload and Download File via FTP / HTTP....
Hope this helpful to you
Regards
Kalpesh
Please "Mark as Answer" if this post answered your question. :)
Kalpesh Chhatrala | Software Developer | Rajkot | India
Kalpesh 's Blog
VFP Form to C#, Vb.Net Conversion Utility- Proposed as answer by Tom BorgmannEditor Thursday, February 9, 2012 7:00 AM
- Marked as answer by CNT LM Thursday, February 9, 2012 11:46 PM
Thursday, February 9, 2012 3:47 AMAnswerer
All replies
-
Hi,
Check below Freeware VFPConnection Library to Upload and Download File via FTP / HTTP....
Hope this helpful to you
Regards
Kalpesh
Please "Mark as Answer" if this post answered your question. :)
Kalpesh Chhatrala | Software Developer | Rajkot | India
Kalpesh 's Blog
VFP Form to C#, Vb.Net Conversion Utility- Proposed as answer by Tom BorgmannEditor Thursday, February 9, 2012 7:00 AM
- Marked as answer by CNT LM Thursday, February 9, 2012 11:46 PM
Thursday, February 9, 2012 3:47 AMAnswerer -
Hi,
VFPConnection Library worked just fine.
It has one limitation: you cannot download all files in a remote path like you could do with the FTP command (mget *) and you cannot delete all files in the remote path. I don’t suppose you know how to do that using VFPConnection Library, or do you?
Another annoying thing is the fact that every time o build my exe I get the following message:
Program y:\visual foxpro projects\ftptest\ftest.prg has the following errors:
Unknown FTPGET – Undefined
Is there a way to “tell” VFP that this function is in a library and not some type of error?Thursday, February 23, 2012 1:26 AM -
Check out the EXTERNAL command. It's designed to tell the compiler about stuff it can't see.
Tamar
Thursday, February 23, 2012 9:20 PMAnswerer -
Hi Tamar,
Good point.
I was using EXTERNAL FTPGET. Using EXTERNAL LIBRARY vfpconnection the situation was resolved.Thursday, February 23, 2012 11:28 PM -
Insisting…
Is there a way to use VFPConnection Library to get a list of files in the remote server. I already worked out the download/upload question.
My next problem is to delete some files in a remote path.
I need to get a list of the files in that specific folder of the ftp server so I can know what files must be deleted.Thursday, February 23, 2012 11:35 PM