XRPi Home

Documentation Index
Alphabetic Index

XRPi Documentation - PZTDOS Commands

DIR

Command

DIR -- Obtain a directory listing.

Synopsis

DIR [path/][mask]

Description

The DIR command lists the contents of the specified directory using the optional specified mask.

If a path is not specified, the "current working directory" is assumed. Forward and back slashes can be freely mixed.

If mask is not specified, "*.*" is assumed. If only the filename part is specified, the extension ".*" is assumed.

The files are displayed in alphabetical order.

Examples

DIR MSGHDR??.*
dir LOG\
DIR /pub\DOCS\*.txt

Limitations

Does not at present accept pipes, redirection or switches, or file masks containing spaces.

Portability

Unlike XR16/32, in XRPi this command does not support "drive letters", and pathnames (but not commands) are case-sensitive.

Availability

Restricted to sysops. Available only within PZTDOS mode.

See also

DOS(2) -- Enter PZTDOS mode