Formats and Data Flow
7
Managing Folders and Files
Folders, data files, and state files created in internal flash memory and on a USB
storage device can be managed (i.e. deleted, copied, moved, cataloged) from the
front panel or using additional commands within the
and
MMEMory
MEMory
subsystems.
Deleting Folders
Folders are deleted (removed) using the command:
MMEMory:RDIRectory "<folder>"
When deleting a folder from an I/O interface, the folder must be empty
(containing no sub-folders or files). The folder designated as the current folder
(
) cannot be deleted. From the front panel, un-empty folders
MMEMory:CDIRectory
can be deleted (as prompted) as can the (SCPI designated) current folder.
Deleting a Folder Example
The following example deletes a sub-folder (empty) followed by its root folder.
//create USB folder 'dut_2' and sub-folder 'data2'
MMEM:MDIR "USB:\dut_2"
MMEM:MDIR "USB:\dut_2\data2"
//remove sub-folder 'data2' then remove folder 'dut_2'
MMEM:RDIR "USB:\dut2\data2"
MMEM:RDIR "USB:\dut_2"
Deleting Files
Data and state files located on the instrument's internal flash drive or on a USB
memory device
(Figure
7-2) are deleted using the command:
MMEMory:DELete <"file">
The file format is "[
".
is either
(internal flash
drive:path]<file_name>
drive
INT
memory) or
(external memory device). If the file deleted is not in the specified
USB
current directory,
is an absolute folder path beginning with '\' and starting at
path
the root folder. The file name must include the file extension. For example:
Keysight 53210A User's Guide
215