GetDirectoryList |
Top Previous Next |
×V4.0Ø
Syntax - GetDirectoryList <ListName> <Directory> Where: <ListName> is the user defined name for the list. <Directory> is a literal string or a variable containing a literal string
Description: This command is used to retrieve a listing of the folders inside the <Directory> specified. The names of the folders are stored in a List named by <ListName>. This command can be used on any local directory as well as any network or FTP directory that the user can access. When using this command with an FTP directory, the appropriate FTP settings must be configured using the FTP SetStartup commands. With any directory type, if no folders are found, an empty list is created. In addition to storing the name of the folder, EMUE also stores the full path, size (if possible), creation date, and last modified date. If the named list does not exist, EMUE will create it automatically as if the NoVerifyCount option was set to YES. If an existing list name is specified, then the list of files will be appended to the existing list. When retrieving file names from an FTP server, the file size, creation date, and last modified date may not be available. If a wildcard (*) is used, EMUE will only retrieve folders that match the pattern specified.
Sample 1: The following statement creates a List named "FTP_Directory_File_List" and stores all folders from the FTP directory given. GetDirectoryList FTP_Directory_File_List "ftp://website.system.com/files/"
Sample 2: The following statement stores the folders that start with "a" from the FTP directory provided. GetDirectoryList FTP_Directory_File_List "ftp://website.system.com/files/a*"
Sample 3: The following statement stores the folder info from the Local directory given. GetDirectoryList Local_Directory_File_List "C:\Test\"
Sample 4: The following statement creates a List named "Network_Directory_File_List" and stores the folder info from the Network directory given. GetDirectoryList Network_Directory_File_List "\\Server01\Test\"
|