Command Reference
R&S
®
CMW500
213User Manual 1173.9463.02 ─ 02
MMEMory:CATalog:LENGth? ['<DirectoryName>']
Returns the number of files and subdirectories of the current or of a specified directory.
The number includes the directory strings "." and ".." so that it corresponds to the number
of strings returned by the MMEMory:CATalog command after the initial numeric param-
eters.
Parameters:
'<DirectoryName>' String parameter to specify the directory. If the directory is omitted,
the command queries the contents of the current directory (see
MMEMory:CDIRectory).
If the wildcards ? or * are used, the number of files and subdirec-
tories matching this pattern are returned.
Example:
MMEM:CAT:LENG?
Response: 4 (corresponding to the MMEMory:CATalog example)
Example:
MMEM:CAT:LENG? 'D:\User\Data\session*'
Returns the number of files and subdirectories starting with ses
sion which are located in directory D:\User\Data.
Usage: Query only
Firmware/Software: V1.0.5.3
MMEMory:CDIRectory ['<DirectoryName>']
Changes the current directory for mass memory storage.
If '<DirectoryName>' is omitted, the current directory is set to '\'. If '<DirectoryName>'
contains not only a directory, but also a drive letter or server name, the command
MMEM:MSIS is also executed automatically.
Parameters:
'<DirectoryName>' String parameter to specify the directory. Wildcards are not
allowed.
*RST: a *RST does not change the current directory
Example:
MMEM:CDIR 'D:\User\Data'
Changes the current directory to D:\User\Data
Usage: SCPI confirmed
Firmware/Software: V1.0.0.4
MMEMory:COPY '<FileSource>'[, '<FileDestination>']
Copies an existing file. The target directory must exist.
Parameters:
'<FileSource>' String parameter to specify the name of the file to be copied.
Wildcards ? and * are allowed if '<FileDestination>' contains a path
without filename.
Instrument-Control Commands