C5_DELETE FILE

 DELETE FILE
 Remove a file from disk
------------------------------------------------------------------------------
 Syntax

     DELETE FILE | ERASE <xcFile>

 Arguments

     <xcFile> is the name of the file to be deleted from disk and can be
     specified either as a literal file name or as a character expression
     enclosed in parentheses.  You must specify the file name, including the
     extension, and it may optionally be preceded by a drive and/or path
     specification.

 Description

     DELETE FILE, a synonym for ERASE, is a file command that removes the
     specified file from disk.  SET DEFAULT and SET PATH do not affect DELETE
     FILE.  The file is deleted from disk only if found in the current DOS
     directory or in the directory explicitly specified as part of the file
     name.

     Warning!  Files must be CLOSEd before deleting them.  Otherwise,
     either a sharing violation or a date corruption on the drive may occur.

 Examples

     .  This example removes a specified file from disk then tests to
        see if the file was in fact removed:

        ? FILE("Temp.dbf")               // Result: .T.
        DELETE FILE Temp.dbf
        ? FILE("Temp.dbf")               // Result: .F.

 Files   Library is CLIPPER.LIB.

See Also: CLOSE CURDIR() FILE() USE



2 responses to “C5_DELETE FILE

  1. Pingback: C5 File Management | Viva Clipper !

  2. Pingback: C5 Commands | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.