Skip to main content

GetFileList

GetFileList Function​

Gets the list of files with specified pattern from the mentioned directory.

Syntax​

GetFileList(scalar Directory Name, scalar Pattern, scalar Recursive(true/false))

Arguments​

ArgumentDescription
scalar Directory NameDirectory from which the list of files is to returned
scalar PatternPattern specifying the type of files
scalar RecursiveTrue if list from subdirectories is also needed and false if not needed

Examples:

GetFileList("C:\","*.txt", false)

Gets the list of all the files of .txt type from C:\ directory. Recursive should be made true if files from sub directories are also needed.