<<

Contents

Search

>>

 

FTP_DELETEFILE

 

 

Function

 

 

Syntax:

FTP_DELETEFILE(<Host>,<Filename>,<Username>,<Password>)

 

<Host>

= <STRING-EXPRESSION>

<Filename>

= <STRING-EXPRESSION>

<Username>

= <STRING-EXPRESSION>

<Password>

= <STRING-EXPRESSION>

 

 

Meaning:

Deletes a file on a FTP server.

 

There must be connection to the Internet.

 

FTP_DELETEFILE returns the result 0 if no error occurred, otherwise an error number. In the case of an error ERRORTEXT$ contains the error report.

Parameter:

Host

Name of FTP server

Filename

Name of file to delete

Username

Username for access to <Host>

Password

Password for access to <Host>

 

Sample:

HOST$ = "www.xxx.de"

HOST_FILE$ = "/test.dat"

USERNAME$ = "user1"

PASSWORD$ = "passwort1"

 

H% = FTP_DELETEFILE(HOST$,HOST_FILE$,USERNAME$,PASSWORD$)

IF H% <> 0

THEN ERRORMES = "Error" + STR$(H%) + " " + ERRORTEXT$

ENDIF

 

See also:

FTP_GETFILE

FTP_PUTFILE

FTP_GETFILEINFO$