LISTDIR        List local folder to a file

Top  Previous  Next

Syntax:

LISTDIR

[ dir name ]  [ file name ]

Arguments:

[ dir name ]

Optional variable or string defining a folder path name to list; if no path is defined FileLinks working folder is used.

 

[ file name ]

Optional variable or string defining a file name to write the folder listing to; if no path is defined FileLink writes to a file named "dirlist.txt" in the working folder.

 

 

This script command produces a folder listing of FileLink's working folder or a specified folder and writes it to a file. If [ file name ] is not specified, FileLink 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 the remote system.

       

       LISTDIR "\uploads\*.*"

       SENDFILE "dirlist.txt"

 

Related Command(s): MAKEDIR, WORKINGDIR