Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto download from ftp site
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00949928
Message ID:
00949940
Views:
12
Bharat,

You can get the list of files in the FTP directory (see listdir() function in ftp_test.prg) and than download them one by one.

>
> I downloaded the ftp program Written by: Robert Abram. This is a very beautiful program. We can use GetftpFile() to get the files from the ftp site like
>? "--- Receiving File to FTP Server"
> IF !sz_ftp.GetFtpFile("testfile.txt", "testfile.new", .T.)
> ?sz_ftp.GetErrorCode(.T.)
> ENDIF
> ListDir()
>
> But how can I get the files whose names I donot know or whose names changes everyday. I tried like
>IF !sz_ftp.GetFtpFile('*.dbf', "n:\out\wr1008.dbf", .T.)
> ?sz_ftp.GetErrorCode(.T.)
> ENDIF
>
>but get error that file doesnot exist. Any help?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform