B&K Precision 2552-2559 - Programming Manual User Manual
Page 39

39
DESCRIPTION
The DIRECTORY command is used to manage
the creation and deletion of 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.
COMMAND SYNTAX
Directory DISK, <device>, ACTION, <action>,
‘<directory>’
QUERY SYNTAX
Directory? DISK, <device> [, ‘<directory>’]
<device>:={UDSK}
<action>:={CREATE, DELETE}
< directory >:= A legal DOS path or filename.
(This can include the ‘/’ character to define the
root directory.)
RESPONSE FORMAT
DIRectory DISK, <device> “<directory>”
EXAMPLE
The following asks for a listing of the directory of
a USB memory device:
Command message:
DIR? DISK, UDSK
Response message:
DIRectory DISK, UDSK,"A:
BK1000
BK1000AA
BB.SET 2.00 KB
BK00001.SET 2.00 KB
BK00002.SET 2.00 KB
3 File(s), 2 DIR(s)
"
RELATED COMMANDS
DELF
MASS STORAGE
DIRECTORY, DIR
Command /Query