Example: ftp_dir_ex
In the following example, the ftp_dir_ex function runs the dir command in the pub/test directory.
FTP pFTP;
// Logon to the FTP server
ftp_logon_ex (&pFTP, "FTP", "URL=ftp://ftp.microsoft.com", LAST );
// Run dir on the pub/test directory
ftp_dir_ex(&pFTP,"FtpDir", "PATH=pub/test", "KIND=MLSD", ENDITEM, LAST);
// Logout from the FTP server
ftp_logout_ex(&pFTP);