beautypg.com

Avery Dennison 6035 Programmer Manual Rev.A 7/98 User Manual

Page 103

background image

7/9/98

ROM-DOS 6.22 Command Descriptions 3-45

DIR (cont.)

/P selects page mode, pausing the display each time the screen is full.
Press any key for the next screen.

/O displays file names in sorted order. The sort order can contain one
or more of the following letters:

Letter

Description

D

By date and time, newest first

E

Alphabetic order by extension

G

Directories grouped before files.

N

Alphabetic order by name

S

Size, smallest first

-

Reverses the sort order with the dash "-" symbol.
For example, to sort all files in the directory in
reverse alphabetic order, use /O-N option.

/S displays files in subdirectories.

/W displays a list in wide format without date, time, or size.

The DIRCMD environment variable sets the default preferences for the
DIR command. The SET command assigns values to an environment
variable. Refer to the SET command section for proper usage. For
example, if you always want /P set for DIR, use SET DIRCMD=/P. The
default settings in DIRCMD can be overridden using the minus sign (-)
preceding the option. If you want to cancel the paging for a single use
of the DIR command, enter DIR /-P.

The DIRSIZE environment variable is useful for non-standard screen
sizes. As with the DIRCMD variable, use the SET command to assign
the values. The syntax is:

SET DIRSIZE rows[,columns]

The values for rows and columns only have an affect when you use /P
or /W with DIR. /P uses rows to display the correct number of lines
before pausing. /W uses columns to display the correct number of
columns across the width of the screen.