Share this page

# 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);

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: