SUBDIR outputs a list of subdirectory names on the disk in the currently selected disk drive.
If SUBDIR is used with an input, it outputs the subdirectory names specified by its input. A drive specifier may be used to access a disk drive which is not currently selected. A ? may be used to match a single character except a period and a * may be used to match a group of characters not including a period.
See also DIRECTORY.
Result: [DOS WINDOWS WINLOGO]
? (DIRECTORY "W\*)
Result: [WINDOWS WINLOGO]