Maptitude GISDK Help |
Gets information about a file.
info = GetFileInfo(string path)
Argument |
Contents |
path |
The full or partial path of the file about which information is returned |
An array of eight items:
Element |
Type |
Contents |
1 |
String |
Filename, including extension, but not including the path |
2 |
String |
Type of file ("directory", "file", or "volume id") |
3 |
String |
Allowable access to the file ("read only" or "read/write") |
4 |
String |
State of the file ("hidden" or "not hidden") |
5 |
String |
System state of the file ("system" or "not system") |
6 |
Integer |
Size of the file in bytes |
7 |
String |
Date of the file |
8 |
String |
Time of the file |
GetFileInfo() returns null if the file does not exist.
For more information on full and partial paths, see Identifying Files and Folders.
f_info = GetFileInfo("c:\\Maptitude\\mapt.exe")
ShowMessage("The Maptitude program file was created on " + f_info[7])
Function |
Summary |
Checks whether files are in use by Maptitude. |
|
Gets a listing of the contents of a directory |
|
Searches for the path for a filename |
|
Changes the attributes of a file or a directory |
©2025 Caliper Corporation | www.caliper.com |