Maptitude GISDK Help

GetFileInfo()

Summary

Gets information about a file.

 

Syntax

info = GetFileInfo(string path)

 

Argument

Contents

path

The full or partial path of the file about which information is returned

 

Returns

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

 

Notes

Example

f_info = GetFileInfo("c:\\Maptitude\\mapt.exe")

ShowMessage("The Maptitude program file was created on " + f_info[7])

 

See Also

Function

Summary

FileCheckUsage()

Checks whether files are in use by Maptitude.

GetDirectoryInfo()

Gets a listing of the contents of a directory

SearchFilePath()

Searches for the path for a filename

SetFileAttributes()

Changes the attributes of a file or a directory

 

 

©2025 Caliper Corporation www.caliper.com