|
|
|
|
|
- Operating mode in Windows Vista (and later)
fRemoveDir (Function) In french: fRepSupprime Deletes a directory from a disk. Remarks: - The user must have the rights to delete a directory.
- A directory currently browsed by fDir or fListFile cannot be deleted.
Syntax
<Result> = fRemoveDir(<Directory to delete> [, <Deletion indicator>])
<Result>: Boolean - True if the directory was deleted,
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Directory to delete>: Character string Name and full (or relative) path of the directory to delete. A UNC path can be used. The wildcard characters (*,?) are ignored. This directory name may (or may not) end with "\". <Deletion indicator>: Optional constant | | frReadOnly | Also deletes the read-only files. If this constant is not specified, the function will return False if read-only files must be deleted.
| frRecursive | The contents of the directory and subdirectories are also deleted. If this constant is not specified, the directory must be empty in order to be deleted. | frToRecycleBin | Sends the directory to the Windows bin instead of deleting it.
|
<Deletion indicator> is empty by default. None of these options is selected.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|