FTP_GETFILE
|
Syntax: |
FTP_GETFILE(<Host>,<Host
Filename>,<Username>,<Password>,<Client
Filename>,<Progressbar>)
|
||||||||||||
|
|
|
||||||||||||
|
Meaning: |
Copies files from a FTP server to the client. <Host Filename> and <Client Filename>
can contain several filenames separated by semi-colons. FTP_GETFILE gets the file <Host Filename> from
the Server <Host> and saves it at the Client as <Client Filename>.
There must be an Internet connection. FTP_GETFILE returns the value 0 if no error
occurred, otherwise an error number. In the case of an error ERRORTEXT$ contains the error report. |
||||||||||||
|
Parameter: |
|
||||||||||||
|
Sample: |
HOST$ = "www.xxx.de" HOST_FILE$ =
"/index.html;/search.html" CLIENT_FILE$ =
"C:\tmp\index.html;C:\tmp\search.html" USERNAME$ = "user1" PASSWORT$ = "passwort1" H% = FTP_GETFILE(HOST$,HOST_FILE$,USERNAME$,PASSWORT$, CLIENT_FILE$,“7;10;40“) IF H% <> 0 THEN ERRORMES
= "Error" + STR$(H%) + "
" + ERRORTEXT$ ENDIF |
||||||||||||
|
See also: |
|