UDELETE Command

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

O/S Interoperability Commands

UCLOSE Command

UCREATE Command

UERROR Function

UEXECUTE Command

ULOCK Command

ULSEEK Function

UMESSAGE Command

UOPEN Command

UREAD Command

UREADLINE Function

USYSTEM Function

UWAITFOR Command

UWRITE Command