Example: ftp_dir

In the following example, the ftp_dir function runs the dir command in the pub/test directory.

    // Logon to the FTP server 
    ftp_logon ("FTP", "URL=ftp://ftp.microsoft.com",
         LAST ); 
    // Run dir on the pub/test directory 
    ftp_dir ("Ftp_Dir", "PATH=pub/test",LAST ); 
    // Logout from the FTP server 
    ftp_logout();