7 Save/Recall/Print
7.3 Save
7.3.13.1 Mass Storage Catalog (Remote Command Only)
Remote
Command
:MMEMory:CATalog? [<directory_name>]
The string <directory_name> must be a valid logical path. If no string then it uses the current
directory
Example
:MMEM:CAT? "C:\"
Notes Queries disk usage information (drive capacity, free space available) and obtains a list of files and
directories in a specified directory in the following format:
<numeric_value>,<numeric_value>,\{<file_entry>\}
It returns two numeric parameters and as many strings as there are files and directories
The first parameter indicates the total amount of storage currently used in bytes
The second parameter indicates the total amount of storage available, also in bytes. <file_entry>
is a string. Each <file_entry> indicates the name, type, and size of one file in the directory list:
<file_name>,<file_type>,<file_size>
As the Windows file system has an extension that indicates file type, <file_type> is always empty.
<file_size> provides the size of the file in bytes. For directories, <file_entry> is surrounded
by square brackets and both <file_type> and <file_size> are empty
7.3.13.2 Mass Storage Change Directory (Remote Command Only)
Remote
Command
:MMEMory:CDIRectory [<directory_name>]
<directory_name> must be a valid logical path
:MMEMory:CDIRectory?
Example
:MMEM:CDIR "C:\Program Files"
Notes Changes the current directory for a mass memory file system. The <directory_name> parameter is
a string. If no parameter is specified, the directory is set to the *RST value
At *RST, this value is set to the default user data storage area, that is defined as System.En-
vironment.SpecialFolder.Personal
Query returns full path of the current directory as a quoted string
7.3.13.3 Mass Storage Copy (Remote Command Only)
Remote
Command
:MMEMory:COPY <string>,<string>[,<string>,<string>]
<string> must be a valid logical path
Example
:MMEM:COPY "C:\TEMP\Screen_0000.png","C:\"
Notes Copies an existing file to a new file or an existing directory to a new directory
If no directory is specified, uses the current directory
Two forms of parameters are allowed. The first form has two parameters. In this form, the first
IQ Analyzer Mode User's &Programmer's Reference 964