MDO3000 Programmer Manual.pdf - 第350页
Commands Listed in A lphabetical Order Syntax FILESystem:CW D {<new working di rectory path >} Arguments <new wo rki ng directory path> is a quoted string that defines the current working; a directory name can…

Commands Listed in Alphabetical Order
FILESystem:C
OPy (No Query Form)
This command copies a named file to a new file. The new file may be in a totally
separate directory than the old file. You can only copy one file at a time using this
command. Wil
d card characters are not allowed.
Group
File System
Syntax
FILESystem:COPy {<source QString>,< destination QString>}
Related Commands
FILESystem:CWD,
FILESystem:DELEte
Arguments
QString 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:COPY
“
E:/myTestData/tek00001.isf”,”I:/archive/tek00001.isf”
copies
the file named TEK00001.SET, located in the /myTestData/ directory on the E:
drive to a file named TEK00001.SET in the /archive/ directory on the I:
drive. Note that I: is a mounted drive.
FILESystem:CWD
This command specifies the current working directory (CWD) for FILESystem
commands. The default working directory is "E:/". Anytime you use this
command to change the directory, the directory that you specify is retainedasthe
current working directory until you either change the directory or you delete the
directory. If you delete the current working directory, the oscilloscope resets
current working directory to the default directory the next time the oscilloscope is
powered on or the next time you execute a file system command.
This command supports the permutations of file and directory names supported
by Microsoft Windows:
Relative path names; for example, "./Temp"
Absolute path names; for example, "E:/MyWaveform"
Implied relative path names; for example "newfile.txt" becomes
"E:/TekScope/newfile.txt" if the current working directory is "E:/TekScope"
Group
File System
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-319

Commands Listed in Alphabetical Order
Syntax
FILESystem:CW
D {<new working directory path>}
Arguments
<new wo rking directory path> is a quoted string that defines the current
working; a directory name can be up to 128 characters.
Examples
FILESYSTEM:CWD "E:/TekScope/images" sets the current working directory
to images.
FILESYSTEM:CWD? might return
:FILESYSTEM:CWD "E:/TekScope/Waveforms" indicating that the current
working directory is set to Waveforms.
FILESystem:DELEte (No Query Form)
This command deletes a named file. If you specify a directory name, it will delete
the directory and all of its contents, the same as the RMDir command. You can
also specify the filename as *.* to delete all of the files in the current or specified
directory.
Group
File System
Syntax
FILESystem:DELEte <file path>
Related Commands
FILESystem:CWD
FILESystem:RMDir
Arguments
<file p ath> 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.
The argument
*.* will delete all files and subdirectories within the current
working directory.
Examples
FILESYSTEM:DELETE "NOT_MINE.SET" deletes the file named
NOT_MINE.SET from the current working directory.
FILESystem:DIR? (Query Only)
Returns a list of quoted strings. Each string contains the name of a file or directory
in the current working directory.
2-320 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual

Commands Listed in Alphabetical Order
Group
File System
Syntax
FILESystem:DIR?
Related Commands
FILESystem:CWD,
FILESystem:MKDir
Arguments
None
Returns
FILESystem:DIR? returns a list of files and directories in the current working
directory.
Examples
FILESYSTEM:DIR? might return
:FILESYSTEM:DIR
"tek00000.png","my_CAN_setup.set","savedWfm1.isf","myImages"
FILESystem:FORMat (No Query Form )
Formats a mass storage device. This command should be used with extreme
caution as it causes all data on the specified mass storage device to be lost.
Drive letters (e.g., E:) are case sensitive and must be upper case. For all other
FILESYSTEM commands, drives letters are not case sensitive. Example:
FILES:FORMAT "E:/" Formats the USB flash drive installed in the oscilloscope's
front panel USB port.
Group
File System
Syntax
FILESystem:FORMat
Arguments
<drive name> is a quoted string that defines the disk drive to format.
Examples
FILESYSTEM:FORMAT "E:/" formats the USB flash drive installed in the
oscilloscope's front panel USB port.
FILESystem:FREESpace? (Query Only)
Returns the number of bytes of free space on the current drive.
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-321