Maptitude GISDK Help

GetDrives()

Summary

Returns a list of disk drives and their type.

 

Syntax

drives = GetDrives(string type)

 

Argument

Contents

type

The type of drive that should be listed: "Removable", "Fixed", "Remote", "CD-ROM", or "RAM-drive". The default is "All" to list all drives on the system

 

Returns

An array of drive descriptions. Each element is an array of two items:

 

Element

Type

Contents

1

String

The drive name (e.g. C:\)

2

String

The drive type ("Removable", "Fixed", "Remote", "CD-ROM", "RAM-drive" or "Unknown")

 

Notes

Example

drvs = GetDrives("Fixed") // drvs might be {{"C:\\", "Fixed"}, {{"D:\\", "Fixed"}}

 

Error Codes

Error Type

Meaning

Error

Invalid type specified

 

See Also

Function

Summary

GetDirectoryInfo()

Gets a listing of the contents of a directory

 

 

©2025 Caliper Corporation www.caliper.com