MDO3000 Programmer Manual.pdf - 第355页
Commands Listed in Alphabetical Order Syntax FILESystem:MO UNT:LIST? Related Commands FILESystem:UNMOUNT :DRIve , FILESystem:MOUNT :DRIve Examples FILESystem:MO UNT:LIST? might return "X:;network.xyz.com ;/net/users…

Commands Listed in Alphabetical Order
Syntax
FILESystem:MO
UNT:DRIve <Qstring>
Related Commands
FILESystem:MOUNT:LIST?,
FILESystem:UNMOUNT:DRIve
Arguments
Qstring is a semicolon separated list of fields described as follows:
Drive Name: The drive name to use, which should be a case insensitive single
letter followed by a colon. The drive name must be a letter between 'I' and 'Z',
inclusive. Drives A: through D: are not used and drives E: through H: are reserved
for the USB host ports.
Server Identity: One of:
- DNS name of the server.
- IP address of the server.
Path: The path to be mounted; e.g. /this/that/mydir
User Name: The user name.
User Password: The user password.
NOTE. "User Name" and "User Password" are optional a nd are only used for
mounts on Microsoft Windows networks.
Examples
FILESystem:MOUNT:DRIve
"I:;192.168.1.10;C$;mywindowsusername;mywindowspassword"
would mount the shared C: drive on the Windows server at IP address
192.168.1.10, using the Windows login name mywindowsusername and the
Windows password mywindowspassword.
FILESystem:MOUNT:LIST? (Query Only)
This query returns a comma-separated list of the mounted network drives,
including the drive letter, server identity (DNS name or IP address), mountpath
and type. If no network drives are mounted, an empty string is returned. Mount
types are either NFS or CIFS (for Microsoft Windows networks).
NOTE. There are no new lines or white spaces in the returned string.
Group
File System
2-324 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual

Commands Listed in Alphabetical Order
Syntax
FILESystem:MO
UNT:LIST?
Related Commands
FILESystem:UNMOUNT:DRIve,
FILESystem:MOUNT:DRIve
Examples
FILESystem:MOUNT:LIST? might return
"X:;network.xyz.com;/net/users/mike/
home;NFS,:;winnet.xyz.com;\net
\users\fred\home;CIFS"
FILESystem:READFile (No Query Form)
Writes the contents of the specified file to the specified interface. If the specified
file does not exist or is not readable, an appropriate error event is posted.
Group
File System
Syntax
FILESystem:READFile <QString>
Related Commands
FILESystem:CWD
Arguments
<QString> is a quoted string that defines the file name and path. If the file path is
within the current working directory, specify only the file name.
Examples
FILESYSTEM:READFILE “E:/test_data/tek00016CH1.csv” reads the
content of the specified file, if the file exists and is readable, and sends the content
of the file to the current interface.
FILESystem:REName (No Query Form)
Assigns a new name to an existing file.
Group
File Sys
tem
Syntax
FILESystem:REName <old file path>,<new file path>
Related Commands
FILESystem:CWD
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-325

Commands Listed in Alphabetical Order
Arguments
<old fi le path>
is a quoted string that defines the file name and path. If the file
path is within the current working directory, you need only specify the file name.
<new fi le path
>
is a quoted string that defines the file name and path. If the file
path is within the current working directory, you need only specify the file name.
Examples
FILESYSTEM:RENAME "E:/TEK00000.SET","E:/MYSETTING.SET" gives the
file named TEK00000.SET the new name of MYSETTING.SET. The file remains
in the root directory on the D drive.
FILESystem:RMDir (No Query Form)
Deletes a named directory. This command deletes the specified directory andall
of its contents. The directory must not b
e a read-only directory.
Group
File System
Syntax
FILESystem:RMDir <directory path>
Related Commands
FILESystem:CWD
Arguments
<directory path> is a quoted string that defines the directory name and path.
If the file path is within the current working directory, you need only specify
the file name.
Examples
FILESYSTEM:RMDIR"E:/OldDirectory" removes the directory named
OldDirectory from the root of the D drive.
FILESystem:UNMOUNT:DRIve (No Query Form)
This command attempts to un-mount the network drive specified by the quoted
str
ing argument.
Group
File System
Syntax
FILESystem:UNMOUNT:DRIve QString
Related Commands
FILESystem:MOUNT:DRIve, FILESystem:MOUNT:LIST?
2-326 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual