The UDELETE command removes the directory entry named by the path name.
Format
UDELETE <path> THEN statement(s) ELSE statement(s) |
Parameter(s)
path |
File expressed by the valid path name, within quotes. |
Description
If no process has the file open, the file is deleted. If an error occurs, the ELSE path executes.
Example
To remove the file \library\book1.txt:
FILENAME = “c:\library\book1.txt” UDELETE FILENAME ELSE PRINT “Can’t delete ":FILENAME END |
See Also