FDISK Commands (Set and query file operations)

 

Command

Data
(for a query, response data)

Explanation

:CHDIr A
:CHDIr "A$"

A: directory number
A$ = directory name

Change the current directory

:DELEte A
:DELEte "A$"

A: directory or file number
A$ = directory or file name

Delete a file or directory

:DIR?

A$

Query the current directory

:FILE?

A<NR1>

Query the number of files and directories

:FORMat

A$ = USB, SD

Format storage media

:INFOr? A

[response] A,"B$","C$","D$",E,F,G,"H$","I$"

A = <file number>
"B$" = <file or directory name>
"C$" = <year/month/day of save>
"D$" = <hour/min/sec of save>
E = <file size (bytes)>
F$ = WAVE, SET, DIR, OTHER (measurement contents)
G = <recording length>
"H$" = <year/month/day of trigger>
"I$" = <hour/min/sec of trigger time>

Query information about a file or a directory

:LDNAme?

"A$"

Query the file name of the loaded file

:LOAD A(,B,C)
:LOAD "A$"(,B,C)

A = file number
A$ = file name
B = start position to load the binary file
C = length of binary file

Load a file

:MEDIa A$

A$ = SD, USB

Select the storage media type

:MEDIa?

A$

Query the storage media type

:NINFor? A

[response] A<NR1>,"B$",C$
A: file number
B$ = file name
C$ = FILE, DIR, NONE

Query a file or directory name

:RENAme A,"A2$"
:RENAme "A1$","A2$"

A = file number
A1$: Original name
A2$: New name

Rename a file or directory

:SAVE

-

Save data

:SDIRection A$

A$ = UP, DOWN

Set the sort order of the file list

:SDIRection?

A$

Query the sort order of the file list

:STYPe A$

A$ = NAME, TYPE, SIZE, DATE

Select the sort key for the file list

:STYPe?

A$

Query the sort key for the file list

:VOLUme?

[response] A<NR1>,B<NR1>
A = <available space>
B = <total space>

Query the available space and total space of the storage media