User`s guide

53220A/53230A User’s Guide 261
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 MMEMory and
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 (con-
taining no sub-folders or files). The folder designated as the current folder
(MMEMory:CDIRectory) cannot be deleted. From the front panel, un-empty
folders 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 “[drive:path]<file_name>”. drive is either INT (inter-
nal flash memory) or USB (external memory device). If the file deleted is not