FTPGetDirList>Server,Username,Password,port,Local_File,Host_File_Spec,Type
This command will connect to the specified FTP server and download a directory listing for the file spec specified.
The directory listing is output to the local text file given in Local_File.
Type can be either D or L, where D obtains a full directory listing, including directories, subdirectories and their contents. L creates a simple file list, containing just filenames matching the file spec.
When the FTP commands are active a small floating window is displayed at the top left of the screen showing the status of the FTP session. To stop the status window appearing set FTP_STATUS to 0 before issuing an FTP command. Set it back to 1 to show the window. The default value for FTP_STATUS is 1.
The result of the FTP operation is stored in FTP_RESULT.
If you are connecting via a proxy server, enter the name or IP address of the proxy server in 'Server', and for 'Username' specify username@remote_server.
By default the timeout for the FTP commands is set to 15 seconds. To change this set the FTP_TIMEOUT variable.
Abbreviation : FGD
See also FTPGetFile, FTPPutFile, FTPDelFile, FTPRenameFile
Example
The following command will retrieve a listing of the entire contents of the server.
FTPGetDirList>ftp.domain.com,anonymous,
[email protected],21,c:\temp\readme.txt,*,D