Previous Topic: GetDiskUsage, GetDiskUsageB, GetDiskUsageKB, and GetDiskUsageMB - Return the Amount of Disk UsageNext Topic: GetFileAttributes - Return the File Attributes


GetDrive - Return the Current Drive Number

Valid on Symbian OS and Windows

The GetDrive function returns the current drive number: 1 for A, 2 for B, 3 for C, and so on.

Function format:

GetDrive() as Integer

The function returns the current drive number: 1 for A, 2 for B, 3 for C, and so on.

Example:

Dim drive AS Integer

drive = GetDrive()

Print("Current drive is : " + Str( drive ) )
Print("Current drive Size : " + Str( GetDiskSize( drive )) )
Print("Current drive Free : " + Str( GetDiskFree( drive )) )
Print("Current drive Usage: " + Str( GetDiskUsage( drive )) )