FTP_PUTFILE
|
Syntax: |
FTP_PUTFILE(<Host>,<Host Filename>,<Username>,<Password>,<Client
Filename>,<Progressbar>)
|
||||||||||||
|
|
|
||||||||||||
|
Meaning: |
Copies files from the client to the FTP
server. <Host Filename> and <Client
Filename> can contain several filenames separated by semi-colon. FTP_PUTFILE saves the file <Client Filename> on
the Server <Host> under the name <Host Filename>. There must be an Internet connection. FTP_PUTFILE
returns the result 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_PUTFILE(HOST$,HOST_FILE$,USERNAME$,PASSWORT$, CLIENT_FILE$,“7;10;40“) IF H% <> 0 THEN ERRORMES
= "Error" + STR$(H%) + "
" + ERRORTEXT$ ENDIF |
||||||||||||
|
See also: |
|