Add comment W32 Constants Translate this page
Retrieves a file from the FTP server and stores it under the specified file name, creating a new local file in the process.|
DECLARE INTEGER FtpGetFile IN wininet;
[in] Valid handle to an FTP session.
[in] Pointer to a null-terminated string that contains the name of the file to retrieve from the remote system.
[in] Pointer to a null-terminated string that contains the name of the file to create on the local system.
[in] BOOL that indicates whether the function should proceed if a local file of the specified name already exists.
[in] Unsigned long integer value that contains the file attributes for the new file.
[in] Unsigned long integer value that contains the flags that control how the function will handle the file download.
[in] Pointer to an unsigned long integer value that contains the application-defined value...
|Returns TRUE if successful, or FALSE otherwise|
|Word Index links for the FtpGetFile :|
|Translate this page:|
Visited in last 7 days: 21
|Created: ||2001-07-15 12:00:00|
|Modified: ||2001-11-26 16:02:26|
||User Contributed Notes:
|Boris | 2006-01-09 16:23:14|
|Is there any way to resume download from ftp site?|
I know for sure that ftp site supports resuming, but my vfp program always starts from beginning. Thanks.
|A.M. | 2006-01-12 11:15:48|
Take a look at the InternetSetFilePointer function and code sample "Using InternetSetFilePointer when resuming interrupted download from the Internet" in this reference.
|Mihai Cazac | 2006-07-31 08:10:12|
|Be aware that FtpGetFile() needs a Windows server to operate properly. In other words you can get the file if, and only if, the server on wich the file is located is a Windows-based server.|
|Bill Coupe | 2006-07-31 09:55:44|
|Mihai - that's not exactly true. I'm retrieving and putting files from an IBM mainframe (3390) and several Sun Unix boxes as well (both internal and external to me). You can not however, easily retrieve file sizes prior to 'getting' the file due to differences in the file systems.|
|Mihai Cazac | 2006-10-29 08:59:07|
|You're right, Bill, it works on other machines too. Unfortunately I've had make a little (big) mistake in the call of FtpGetFile() , and , somehow , my test program failed to download a file from a linux machine, but succeeded doing the same thing from a windows one; trying to figure what is happening, I've found in MSDN the following requirements for FtpGetFile(): Server: Requires Windows Server "Longhorn", Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0. (see http://windowssdk.msdn.microsoft.com/en-us/library/aa384157.aspx )|
So I thought that this was the case, and I've made the previous post.
Copyright © 2001-2017
Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use.
The information on this page is presented AS IS, meaning that you may use it at your own risk.
Microsoft Visual FoxPro
and Windows are trade marks
of Microsoft Corp.
All other trademarks are the property of their respective owners.
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.6.37), the Open Source standard SQL database,
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc.