Command Reference : Programming Language Reference
  
 
@wdir
Syntax: @wdir(directory_str, return_type)
Argument 1: string list, directory_str
Argument 2: string, return_type (optional)
The return_type may be one of the following:
 
“f” (default=”f”)
Return the list of files in the directory_str directory.
“d”
Return the list of directories in the directory_str directory.
“fd”
Return the list of files and directories in the directory_str directory. Note: directories will be denoted with a trailing \.
Return: string list
Returns a string list of all files/directories in the directory directory_str.
Examples
@wdir("C:\Documents and Settings")
returns a string list containing the names of all files in the “C:\Documents and Settings” directory.
@wdir("C:\Documents and Settings", “fd”)
returns a string list containing the names of all files and directories in the “C:\Documents and Settings” directory.
Cross-references
See also @fileexist and @folderexist.