Home > Language Reference > FTP Functions > FTPDisconnect

FTPDisconnect

The FTPDisconnect function ends the connection to a FTP server.

Usage

Used to end the connection to a FTP server before starting a new connection to another FTP server.

Syntax

ret=FTPDisconnect()

Parameters

None.

Return value

Ret, optional numeric return value. If the function succeeds within 30 seconds (this default value can be changed using #FTPTimeout), the function returns 0. If the function fails, the return value is a nonzero negative value (see FTP Functions Error Codes).

See also

FTPConnect

Example

FtpConnect("www.my_site.com","ftp","MX/WH05CZE3H") 'connection to the FTP server (fake credentials!)
FTPDisconnect()  ' Terminates the FTP connection