User`s guide

431
DEL Delete File
The del command is used to delete files from the filing system. The format is:
del <filename>
where <filename> is the name of an existing file.
You can also use wild cards in the filename in order to delete several files at once. The *
character can represent one or more characters in the filename.
For example,
del fw*.txt will delete fw.txt and fwstat.txt. The del command returns OK
if files have been deleted, or
ERROR if no matching files have been found.
DIR List File Directory
The dir command is used to display the file directory. For example:
dir
direct 60720 ro 11:30:41, 31 Jan 2011 CRC ???
sbios 524288 ro 11:30:43, 31 Jan 2011 CRC 6ba8
mirror 60720 ro 11:30:41, 31 Jan 2011 CRC ???
image 4300995 rw 15:22:23, 31 Jan 2011 CRC ab19
sregs.dat 4096 rw 11:30:41, 31 Jan 2011 CRC 08b2
x3prof 4096 rw 11:30:41, 31 Jan 2011 CRC bb5f
CAcert.cer 1371 rw 11:30:41, 31 Jan 2011 CRC 6764
Each line shows the file name and extension (if any), the file size (in bytes), the read/write
status (ro = read only, rw = read/write), the time/date of creation and the CRC value.
Note:
File write operations are carried out as a background task and can be relatively slow due to
the constraints of FLASH memory. As a result, the file directory may only be updated
several seconds after a particular file operation has been carried out.
You can also use wildcards with the dir command in order to narrow your search. The *
character can represent one or more characters in the filename. For example, dir fw*.txt
will list only the fw.txt and fwstat.txt files (if they are present on the TransPort).
FLOCK Lock Files
The flock command prevents any further writing to the FLASH memory. This means that
no files can be written to, added to or deleted from the filing system.
FUNLOCK Unlock Files
The funlock command unlocks the FLASH memory if it had been locked using the flock
command. Files can then be added, deleted or copied to the filing system.
MOVE Move File
The move command is used to replace one file with another whilst retaining the original
filename. The format is:
move <fromfile> <tofile>
For example, the command:
move fw-temp.txt fw.txt
will delete the file called “fw.txt” and then rename the file called “fw-temp.txt” as “fw.txt”.