Difference between revisions of "ERASE"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 20: | Line 20: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
− | [[Category: | + | [[Category:Disk and File Commands]] |
Latest revision as of 08:45, 7 December 2012
Contents
Purpose
Delete a file or files
Syntax
ERASE <filename> | (<expC>) | <file list>
See Also
Description
The ERASE command deletes the specified file or comma-separated file list. If no directory specification is present in the filename, then the file is deleted from the current directory. The filename can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename. When deleting a file, ERASE does not follow the directory search path specified with the SET PATH command.
Example
if file("backup.old") erase backup.old endif