ExamineDirectory()

Syntax

Result = ExamineDirectory(#Directory, DirectoryName$, Pattern$)
Description
Start to examine the specified directory for future listing with commands NextDirectoryEntry() and DirectoryEntryName(). If #PB_Any is used as '#Directory' parameter, the new directory identifier will be returned as 'Result'. If the result is 0, the directory can't be examined. #Directory is the numerical ID and can be used by UseDirectory() to change directory.

The Pattern$ specify which files must be listed. For example: A 'Pattern$' like "*.*" or "" will list all the files (and sub-directories) in the directory. A 'Pattern$' like "*.exe" will list only .exe files (and sub-directories ending with .exe if any).

Supported OS

All

<- DirectoryEntrySize() - FileSystem Index - FileSize() ->