MDO3000 Programmer Manual.pdf - 第353页
Commands Listed in Alphabetical Order Related Commands FILESystem:CW D , FILESystem:DIR? , FILESystem:MOUNT :DRIve Arguments <directory path> is a quoted string that specifies the directory to create Examples FILESY…

Commands Listed in Alphabetical Order
Group
File System
Syntax
FILESystem:FREESpace?
Related Commands
FILESystem:FREESpace?,
FILESystem:CWD
FILESystem:LDIR? (Query Only)
Returns a semicolon separated list of every file and directory in the folder
referred to by the FILESystem:CWD command. This is different than the
FILESystem:DIR? query in that it provides a long output format with the file size,
type, and modification date/time. Each entry is a semicolon separated list:
<file name>;<type DIR or FILE>;<size in bytes>;<date>;<time>
Group
File System
Syntax
FILESystem:LDIR?
Related Commands
FILESystem:CWD,
FILESystem:DIR?
Returns
A string of the form: <file name>;<type DIR or FILE>;<size in
bytes>;<date>;<time>
Examples
FILESYSTEM:LDIR? might return :FILESYSTEM:LDIR
".;DIR;4096;2007-06-22;14:13:43";"tek0000CH1.isf;FILE;
20342;2009-05-21;13:58:24";"TEMP;DIR;4096;2009-09-15;06:20:4 4"
FILESystem:MKDir (No Query Form)
Creates a new folder.
Group
File System
Syntax
FILESystem:MKDir <directory path>
2-322 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual

Commands Listed in Alphabetical Order
Related Commands
FILESystem:CW
D, FILESystem:DIR?, FILESystem:MOUNT:DRIve
Arguments
<directory path> is a quoted string that specifies the directory to create
Examples
FILESYSTEM:MKDIR "E:/NewDirectory" creates the directory named
NewDirectory at the root of the D drive.
These two commands create the directory MyNewSubDirectory within the
existing directory MyDirectory at the root of the D drive:
FILESYSTEM:CWD "E:/MyDirectory"; F ILESYSTEM:MKDIR
"MyNewSubDirectory"
This, of course, assumes that E:/MyDirectory already existed and was not a
read-only directory.
FILESystem:MOUNT:AVAILable? (Query Only)
This query returns a comma-separated list of available drive letters that can be
used for mounting network drives.
Group
File System
Syntax
FILESystem:MOUNT:AVAILable?
Related Commands
FILESystem:CWD,
FILESystem:MOUNT:DRIve
Examples
FILESystem:MOUNT:AVAILable? might return
I:,J:,K:,L:,M:,N:,O:,P:,Q:,R:,S:,T:,U:,V:,W:,X:,Y:,Z: specifying all available drive
letters that can be used for mounting network drives.
FILESystem:MOUNT:DRIve
This command attempts to mount the network drive specified by the quoted
string argument. The query form takes a quoted string argument specifying the
drive letter, and returns a Boolean to indicate whether the specified drive letter is
mounted. 1 = mounted; 0 = not mounted. You can get the details of the mounted
drives by querying FILESystem:MOUNT:LIST?
Group
File System
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-323

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