Xbasic

FILE.DRIVE_TYPE Function

Syntax

Drive_Type as C = FILE.Drive_Type(C Drive)

Arguments

DriveCharacter

The letter of the drive.

Returns

Drive_Type

Valid types are:

  • "Removable"
  • "Fixed"
  • "CD-ROM"
  • "Remote"

Description

Returns The type of the drive.

Discussion

The FILE.DRIVE_TYPE() method returns the type of Drive.

Example 

Type the following in the Interactive window:

? FILE.drive_type("C:")
= "Fixed"

? FILE.drive_type("F:")
= "Removable"

? FILE.drive_type("E:")
= "CD-ROM"

? FILE.drive_type("A:")
= "No Root Dir"

See Also