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, "Ftp_Dir", "PATH=pub/test",LAST ); 
    // Logout from the FTP server 
    ftp_logout_ex(&pFTP);