DIRECTORY

Syntax

DIRECTORY

DIR

(DIRECTORY word)

(DIR word)

Explanation

DIRECTORY outputs a list of file names on the disk in the currently selected disk drive.

If DIRECTORY is used with an input, it outputs the file 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 period and a * may be used to match a group of characters not including a period.

See also SUBDIR.

Examples:

? DIRECTORY

Result: [TEST.LGO TEXT.LGO JUNK.LGO LOGO.EXE LOGO.HLP]

? (DIRECTORY "\*.LGO)

Result: [TEST.LGO TEXT.LGO JUNK.LGO]

? DISK

Result: C

? (DIRECTORY "B\:)

Result: [HOUSE.LGO TROT.LGO HEAD.LGO]

?