Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_erase() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_ERASE()

 DESCRIPTION

 C_ERASE() erases all normal files matching the given file specification.

 NOTES

 C_ERASE() removes all "normal" files.  A "normal" file is one that
 does not have a hidden, system, read-only, or directory attribute.
 The file's archive attribute can either be set or not set.

 SYNTAX

 C_ERASE(filespec)

 PARAMETERS

 filespec (C) is the file specification to be used to search for
 files to delete.  The filespec argument can be any valid DOS file
 name and can include wild card characters (*, ?).  The complete
 file name including drive and path can be specified.  If a drive
 and path are not given, the search is made in the current directory.

 RETURNS

 C_ERASE() returns the number of files that are deleted or zero (0)
 if no files were found.

 EXAMPLES

 c_mkdir("C:\TMP")
 ...
 ...
 do file_transfers
 ...
 ...
 c_erase("C:\TMP\*.*")
 ...
 c_rmdir("C:\TMP")


See Also: C_ZAPDIR() C_ZAPDISK() C_MKDIR() C_DISKEMPTY()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson