FTP DISCONNECT This command will allow you to disconnect from an ftp site previously connected to using the FTP CONNECT command.
Syntax
    FTP DISCONNECT
    FTP DISCONNECT Dial-Up-Disconnect Flag
Parameters
    Dial-Up-Disconnect Flag
Integer Flag
Returns
This command does not return a value.
Description
You can optionally specify an integer parameter to disconnect the dial-up connection if dial-up access was used.
Example Code
    cls

     print "Your Own Server Only"

     print

     input "Enter Your Own URL>";url$

     input "Enter Username>";user$

     input "Enter Password>";pass$

     if get ftp failure()=0

     time#=timer()-time#

     print "Connection established in ";time#/1000.0;" seconds."

     FTP DISCONNECT

     else

     print "Could not connect to ";url$

     print "Error:";get ftp error$()

     wait 1000*6

     endif

     do:loop

     end
See also
FTP Commands Menu Index