DIRREMOVE()
Attempt to remove a directory
Syntax
DIRREMOVE( <cDirectory> ) --> nError
Arguments
<cDirectory> The name of the directory you want to remove.
Returns
<nError> 0 if directory was successfully removed, otherwise the number of the last error.
Description
This function attempt to remove the specified directory in <cDirectory> If this function fails, it will return the last OS error code number. See FERROR() function for the description of the error.
Examples
cDir := ".\backup" IF DirRemove( cDir ) == 0 ? "Remove of directory", cDir, "was successfull" ENDIF
Tests
See examples
Compliance
This function is CA-Cl*pper 5.3 compliant
Platforms
All
Files
Library is rtl
Seealso
MAKEDIR(), DIRCHANGE(), ISDISK(), DISKCHANGE(), DISKNAME(), FERROR()
Pingback: Harbour All Functions – D | Viva Clipper !
Pingback: Harbour Files and Folders Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !