Command Reference - Base Software
R&S
®
CMW500
215User Manual 1173.9463.02 ─ 06
Example:
MMEM:ATTR 'D:\USER\DATA\*.LOG', '-R +A -H'
Clears attributes R and H and sets attribute A for all files with the
extension LOG in directory D:\USER\DATA.
Example:
MMEM:ATTR? 'D:\USER\DATA'
Returns attribute information for all files and subdirectories of
directory D:\USER\DATA.
Possible Response:
".,","..,","myfile.txt,RA","mysubdirectory,"
Firmware/Software: V1.0.0.4
MMEMory:
CATalog? ['<DirectoryName>'][,<Mode>]
Returns information on the contents of the current or of a specified directory.
Parameters:
'<DirectoryName>' String parameter to specify the directory. If this parameter is omit-
ted, the command queries the contents of the current directory
(see MMEMory:CDIRectory).
If the wildcards ? or * are used, only files and directories matching
this pattern are returned.
<Mode> ALL | WTIme
ALL: output enhanced with date, time and file attributes
WTIme: output enhanced with date and time
Return values:
<UsedSize> Disk space in bytes used by the listed files, excluding subdirecto-
ries
<FreeDiskSpace> Available free disk space in bytes
'<Information_1>' ...
'<Information_n>'
Information strings are returned for the directories "." and "..", for
files and for subdirectories.
Each string contains the following contents:
<Name>,<Type>,<Size>[,<DateTime>][,<Attributes>]
<Name>
Name of the object (file or directory)
<Type>
Type of the object: DIRectory | BINary | ASCii | STATe
<Size>
File size in bytes (0 for directories)
<DateTime>
Date and time of last modification
Only returned for <Mode> = ALL or WTIme
<Attributes>
Object attributes, only returned for <Mode> = ALL
Values: R = read-only, A = archive, S = system, H = hidden
Instrument-Control Commands