LISTDIR List local folder to a file |
Top Previous Next |
This script command produces a folder listing of Robo-FTP's working folder or a specified folder and writes it to a file. If [ file name ] is not specified, Robo-FTP creates a file in the working folder named "dirlist.txt". The folder format written to this file is the same as might be produced using the dir command in a DOS window.
This command is useful in creating a folder listing file. Consider the following example where a listing file of a folder is created and sent to a remote site:
LISTDIR "\uploads\*" SENDFILE "dirlist.txt"
To get a listing of the current directory on a remote site, use the FTPLIST script command.
Related Command(s): MAKEDIR, WORKINGDIR, FTPLIST
|