- Identifying the files attributes
- Modifying the attributes of a file (syntax 2)
- Managing errors
- Operating mode in Windows Vista (and later)
fAttribute (Function) In french: fAttribut
// Retrieve the attributes of a file ResAttribute = fAttribute(FilePath + "\File.txt") IF ResAttribute <> "ERR" THEN ... END
Syntax
Retrieving the attributes of a file or directory Hide the details
<Result> = fAttribute(<File path>)
Remarks Identifying the files attributes To retrieve the different attributes of a file, check whether one of the letters identifying an attribute is found in <Result>. This search can be performed by Position for example. Managing errors fAttribute generates an error in the following cases: - the specified file does not exist,
- the name of the specified file is invalid,
- the specified file is opened or locked by another application (when modifying the attributes only),
- the letters specified in <File attributes> do not correspond to file attributes.
- a Unicode string was used for <File name> in an operating system such as Windows 98 or Windows Me.
This page is also available for…
|
|
|