Navigation:  Reference > Functions By Category > Files and filenames >

nGetDriveType()

Previous pageReturn to chapter overviewNext page

The nGetDriveType() function determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive.

 

Syntax:

nGetDriveType(<cRootPath>) -> nDriveType

 

Parameters:

<cRootPath>

String that specifies the root directory of the disk to return information about. A trailing backslash is required.

 

Return Value:

One of the following values:

 

DRIVE_UNKNOWN         0

DRIVE_NO_ROOT_DIR     1

DRIVE_REMOVABLE       2

DRIVE_FIXED           3

DRIVE_REMOTE          4

DRIVE_CDROM           5

DRIVE_RAMDISK         6