beautypg.com

Avery Dennison 6037 Rev. AA 3/04 Programmer Manual User Manual

Page 51

background image

ROM-DOS Internal Commands 4-9

C H D I R ( C H a n g e D I R e c t o r y )

Internal Command

The CHDIR command changes the current directory.

Syntax

CHDIR [drive:][path]subdir

CD [drive:][path]subdir

Remarks

S

ubdir is the name of the new current subdirectory. You may use CD in

place of CHDIR.

The new directory that is to become the current directory must already
exist. Refer to MKDIR for information on the creation of subdirectories.

A series of two periods (..) may be used to indicate a move back to the
next-higher or parent directory.

Specifying only the backslash (\) for the

subdir argument moves you to

the root directory of the current drive.

Example

s

CHDIR \TOOLS

Moves you into the subdirectory named TOOLS, whose parent directory is
the root of the current drive.

CD A:

Displays the current directory on drive A:. Any valid drive letter can be
substituted to get the current directory on that drive.