Technical data

Managing a Nonvolatile File System
303561-A Rev 00
4-19
Examples:
Compacting File Space
When you delete a file from a memory card, the file and its data become
inaccessible and eventually occupy all remaining storage space on that card. Use
the
compact
command to:
Copy active files to memory.
Erase the card’s contents.
Copy the active files back to the memory card.
If responses to the
dir
or
dinfo
commands reveal more free space than contiguous
free space on a memory card, compacting the space on the card increases the
contiguous free space.
Enter the following to erase the memory card contents and rewrite its files, where
<vol>
is the slot number of the card:
compact
<vol>
:
delete alt.cfg
Deletes the
alt.cfg
file on the active volume
delete
2:l6_22.log
Deletes the
l6_22.log
file on volume 2
delete 3:*.log
Deletes all files with the
log
file name extension on volume 3
delete
4:???.log
Deletes all files with a three-character file name and a
log
file name
extension on volume 4
Caution:
Back up the files by copying them to a second memory card before
issuing the
compact
command.