|
|
|
|
|
- Identifying the attributes of a directory
- Modifying the attributes of a directory (syntax 2)
- Handling errors
- Operating mode in Windows Vista (and later)
fDirAttribute (Function) In french: fRepAttribut Returns or modifies the attributes of a directory. Syntax
Retrieving the attributes of a directory Hide the details
<Result> = fDirAttribute(<Directory path>)
<Result>: Character string - "ERR" if an error occurred. To get more details on the error, use ErrorInfo with the errMessage constant.
- One or more letters corresponding to the attributes of the directory ("AH" for example).
The following letters are used:- R: Read-only directory. The directory can be accessed in read-only.
- H: Hidden directory. The name of the directory is grayed or not visible in the explorer.
- S: System directory. The directory is a system directory of Windows.
- A: "Archive" directory. This attribute indicates that the directory can be archived. Some programs use this attribute to find out which directories have been saved.
- D: Directory or subdirectory. The directory is a directory or a subdirectory.
- C: Compressed directory (on NTFS partitions). The directory was automatically compressed when it was copied onto an NTFS partition (Windows NT or 2000).
<Directory path>: Character string Name and full (or relative) path of directory (up to 260 characters). A UNC path can be used. This directory name may (or may not) end with "\". Remarks Identifying the attributes of a directory To find out the different attributes of a directory, check whether one of the letters identifying an attribute is found in <Result>. This search can be performed by Position for example. fDirAttribute throws an error in the following cases: - the specified directory does not exist,
- the name of the directory is invalid,
- the directory is locked by another application (only when attributes are modified),
- the letters specified in <Directory attributes> do not correspond to directory attributes.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|