Mmemory:catalog:length, Mmemory:copy, Mmemory:catalog:length -7 – RIGOL DSG3000 Series User Manual
Page 27: Mmemory:copy -7

RIGOL
DSG3000 Programming Guide
2-7
:MMEMory:CATalog:LENGth
Syntax
:MMEMory:CATalog:LENGth? <path>
Description
Query the number of files and folders under the specified path.
Parameter
Name
Type
Range
Default
<path>
ASCII string
Valid path
NULL
Explanation
The parameter <path>can be the local memory (D disk) or external memory (E
disk) when USB storage device is detected by the USB Host interface at the rear
panel, or the subdirectory under the D or E disk.
Return Format
The query returns an integer, for example, 2.
Example
:MMEM:CAT:LENG? D: /*Query and return the number of files and folders in
the D disk*/
:MMEMory:COPY
Syntax
:MMEMory:COPY <file_source>,<file_destination>
Description
Copy the file or folder specified by <file_source> to the destination path specified
by <file_destination>.
Parameter
Name
Type
Range
Default
<file_source>
ASCII string
The file or folder name
to be copied
NULL
<file_destination>
ASCII string
Valid destination path
NULL
Explanation
The parameter <file_source> denotes the file or folder to be copied. The file or
folder name must contain the path. The parameter <file_destination> indicates
the destination path and does not include the filename.
If the file or folder specified by <file_source> does not exist, the operation
fails.
If the destination path specified by <file_destination> does not exist, the copy
operation fails.
Example
:MMEM:COPY D:\1.sta, D:\