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_zapdir() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_ZAPDIR()

 DESCRIPTION

 C_ZAPDIR() erases all files in the specified directory then removes
 the directory.

 NOTES

 C_ZAPDIR() removes all files in the specified directory regardless
 of the file's attribute.  All hidden, system, read-only, etc. files
 are deleted.

 If the specified directory contains other sub-directories, they
 will be removed, but only if the sub-directory is empty.
 C_ZAPDIR() will not traverse beyond the specified directory.

 The specified directory will automatically be removed unless it is
 the default directory or is not empty due to other sub-directories
 containing files.

 SYNTAX

 C_ZAPDIR(path)

 PARAMETERS

 path (C) is the complete path/directory name to remove.  A drive
 letter may also be specified with the directory name.  Note that
 the last character of path should not be a backslash "\" (i.e. the
 path should be: "C:\TMP").

 RETURNS

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

 EXAMPLES

 c_mkdir("C:\TMP")
 ...
 ...
 do file_transfers
 ...
 ...
 c_zapdir("C:\TMP")


See Also: C_ISREMOVE() C_ISFIXED() C_ZAPDISK() C_ERASE() C_MKDIR()

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