fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Home > lang > rdir
 
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration   
Documentation
History
 
RDir
Syntax
FileNameArray = RDir ( Directory AS String [ , Pattern AS String , Filter AS Integer ] )

Returns a string array that contains the names of files located in Directory and its sub-directories that matches the Pattern and the Filter.

The specified directory is recursed.

The file paths returned are relative to the searched directory.

Examples

' Print the png image files in a directory and its sub-directories

SUB PrintDirectory(Directory AS String)

  DIM File AS String

  FOR EACH File IN RDir(Directory, "*.png")
    PRINT File
  NEXT

END

See also

File & Directory Functions