Command: dir

Syntax

dir {<wildname> {,<wildname> ... } }

Description

List the contents of a directory.

Parameters

Switches

Notes

Monitor, error log, panel log and printer output is preceded by a header line and followed by a count of the files found. These are omitted when output is directed elsewhere.

The number of files found during this operation is recorded automatically in the numeric system identifier found.

Directory operations on files within compiled applications, e.g. dir @test/*.cmd, are currently not implemented.

Examples

List the contents of the current directory.

dir

List all .cmd and .dat files.

dir *.cmd,*.dat

List .dat files to a string array dd.

dir *.dat,-os=dd

Send a listing to a new alpha window.

dir -ow=new_window

See Also

Commands:

path