Description: This function returns information about the specified file.
Returns: Numeric
Usage: Script
Format: GetFileAttribs(FileName[, Mode] )
Parameters: FileName { text } { required } { no default }
Any text expression giving the name of the file.
Mode { Numeric } { Optional } { default: 0 }
Optional numeric value that controls what information is returned by this function.
|
Mode: |
Function Returns: | ||||||||||||||||||
|
0 |
File attributes in the form of a value set to the sum of the following values:
| ||||||||||||||||||
|
1 |
Timestamp showing the date modified | ||||||||||||||||||
|
2 |
File access and status flags as follows:
|
Comments: This function returns a value which is the sum of the following attributes:
Example:
If Watch(0, newFile);
[
attribs = GetFileAttribs(Concat(MyPath, newFile));
]
The above statement will cause attribs to be set to the file attribute value of newFile every time its name changes.
See Also: