Command Reference : Function Reference : Function Reference: W
  
 
@wdir
 
Syntax: @wdir(d, t)
d: string
t: (optional) string
Return: string
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 \.
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.