Programming Guide
Digital Oscilloscopes Series
47
MASS STORAGE
DIRECTORY, DIR
Command /Query
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:
SDS1000X
BB.SET 2.00 KB
SDS00001.SET 2.00 KB
SDS00002.SET 2.00 KB
3 File(s), 2 DIR(s)
RELATED COMMANDS
DELF