xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

FileDelete()

Deletes one or more files specified by a file mask and file attributes.

Syntax

FileDelete( <cFileMask>, [<nAttributes>] ) --> lDeleted

Arguments

<cFileMask>
This is a character string holding the drive, directory and/or file specification of the file(s) to delete. It may contain "wild card characters" (eg: "c:\xhb\data\*.cdx").
<nAttributes>
This is a numeric value specifying the file attributes of the files to query. Values of the following list are used for file attributes. To specifiy multiple attributes, pass the sum of the corresponding values:

Values for file attributes
ValueAttribute
0Normal
1Read only
2Hidden
4System
8Volume
16Directory
32Archived

Return

The return value is .T. (true) if at least one file was deleted, otherwise .F. (false).

Info

See also:DeleteFile(), FErase()
Category: CT:DiskUtil , File functions , Low level file functions
Source:ct\files.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe