Previous Next Edit Rename Undo Refresh Search Administration
FileNameArray = RDir ( Directory AS String [ , Pattern AS String , Filter AS Integer , FollowLink AS Boolean ] ) AS String
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 pattern can contain the same generic characters than the LIKE
operator. If no pattern is specified, any file name is returned.
The filter specifies what kind of files will be returned.
The filter can be one of the following values:
- gb.File for returning only files.
- gb.Directory for returning only directories.
- gb.File + gb.Directory for returning both.
is not specified, all files and directories are returned.
, then symbolic links on directories are recursed. Otherwise they are processed like normal files.
' 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")