![Rohde & Schwarz CMW500 Series User Manual Download Page 211](http://html1.mh-extra.com/html/rohde-and-schwarz/cmw500-series/cmw500-series_user-manual_1477718211.webp)
Command Reference
R&S
®
CMW500
211
User Manual 1173.9463.02 ─ 02
MMEMory:ATTRibute
'<FileName>', '<Action>'
MMEMory:ATTRibute?
['<FileName>']
Sets or removes file attributes for files and directories.
Parameters:
'<Action>'
Attribute actions to be performed. The attributes are R (read-only),
A (archive), S (system), H (hidden).
Set an attribute with a plus or clear an attribute with a minus as
prefix. Separate several actions with a blank, see example.
Parameters for setting and query:
'<FileName>'
String parameter to specify the name and/or path of the objects
for which the attributes shall be modified or returned.
The wildcards * and ? are allowed.
If a directory is specified instead of a file, the directory itself and
all files and subdirectories contained in that directory are modified/
returned.
If the parameter is omitted completely for a query, the current
directory is used as default value (see
Return values:
'<Information_1>' ...
'<Information_n>'
Information strings are returned for the directories "." and "..", for
files and for subdirectories.
Each string has the format '<ObjectName>,<Attributes>'.
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
).
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
Instrument-Control Commands