Manual

P
ART
T
WO
:
COMMANDS
136
ISSUED: February 2005
WM-RCM-E Rev D
MASS
STORAGE
DIRECTORY, DIR
Command/Query
DESCRIPTION
The DIRECTORY command is used to create or delete file directories
on mass storage devices. It also allows selection of the current working
directory and listing of files in the directory.
The query response consists of a double-quoted string containing a
DOS-like listing of the directory. If no mass storage device is
present, or if it is not formatted, the string will be empty.
COMMAND SYNTAX
DIRectory
DISK,<device>, ACTION,<action>,‘<directory>
QUERY SYNTAX
DIRectory? DISK,<device> [,‘<directory>]
<device> : = {FLPY, HDD}
<action> : = {CREATE, DELETE, SWITCH}
<directory> : = A legal DOS path or filename. (This can include the
‘\’ character to define the root directory.)
RESPONSE FORMAT
DIRectory DISK,<device> <directory>
<directory> : = A variable length string detailing the file content of
the hard disk.