Use the FtpOpen function to initialize an FTP session. 3 Test for the successful execution of FtpOpen. 4 Use the FtpConnect function to open an FTP connection to a specific server. 5 Test for the successful execution of FtpConnect using the FtpStatus function. If the return value is 1, the operation is still waiting.
Some servers require connection to a specific port.
If you still have problems establishing a connection, contact your ftp server administrator to find out a specific port number to specify. Use the FtpStore function to upload the file to the FTP server. 7 Test for the successful execution of FtpStore using the FtpStatus function. 8 Use the FtpDisconnect to shut down the FTP connection. 9 Test for the completion of the FtpDisconnect operation using the FtpStatus function.