FileGetStatus Procedure |
Version 6 |
Retrieves the status of the specified file.
[ bRet = ] FileGetStatus ( sFilePath, pstFileStatus )
The FileGetStatus procedure syntax has the following parts:
Name |
Type |
Description |
bRet |
Bool |
True if successfully gotten the file status, False otherwise |
sFilePath |
Val BString |
a file path |
pstFileStatus |
struct to hold the file status |
structFileStatus
will have the following file status:
Fields |
Type |
Description |
dtCreated |
DATE |
Date Time File created |
dtLastModified |
DATE |
Date Time File last modified |
dtLastAccessed |
DATE |
Date Time File last accessed for reading |
dlSize |
DLONG |
Logical file size in bytes |
dwAttribute |
DWORD |
File Attribute |
bsPath |
BSTR |
Absolute Filename |
The following example gets file status of last modified date and time:
print FileGetStatus("c:\\projects\\ateasy\\atert\\asym.cpp", stFileStatus)
Print FormatDateTime(stFileStatus.dtLastModified, "%m/%d/%Y %I:%M %p")