Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®
FILE_INFO Structure
Use this structure to retrieve information about a file.
STRUCTURE FILE_INFO
{
STRING Name;
INTEGER iAttributes;
INTEGER iTime;
INTEGER iDate;
LONG_INTEGER lSize;
};
File Attribute Bit Flags -
KEYWORD
ATTRIBUTE
ARDONLY
File is marked read only
AHIDDEN
File is hidden
ASYSTEM
File is marked as a system file
AVOLUME
File is a volume label
ADIRENT
File is a directory
ARCHIVE
File is marked as an archive
Version:
SIMPL+ Version 3.00.02 or higher (Pro 2 only)
NOTE: For an example of how and where to use the FILE_INFO structure, refer to
the example code in "FindFirst" on page 149.
// relative name of the found file
// attributes for the file
// file time in packed form
// file date in packed form
// size of the file in bytes
These may be Bitwise OR'ed together
Software
Equivalent SIMPL+ Function
IsReadOnly
IsHidden
IsSystem
IsVolume
IsDirectory
-
SIMPL+
®
135
Need help?
Do you have a question about the SIMPL+ and is the answer not in the manual?
Questions and answers