Function Reference

DriveGetDrive

Returns an array containing the enumerated drives.

DriveGetDrive ( "type" )

 

Parameters

type Type of drive to find:
"ALL", "CDROM", "REMOVABLE", "FIXED", "NETWORK", "RAMDISK", or "UNKNOWN"

 

Return Value

Success: Returns an array of strings (drive letter followed by colon) of drives found. The zeroth array element contains the number of drives.
Failure: Returns numeric 1 and sets @error to 1.

 

Remarks

None.

 

Related

DriveGetFileSystem, DriveGetLabel, DriveGetSerial, DriveGetType, DriveSetLabel, DriveSpaceFree, DriveSpaceTotal, DriveStatus

 

Example


$var = DriveGetDrive( "all" )
If NOT @error Then
    MsgBox(4096,"", "Found " & $var[0] & " drives")
    For $i = 1 to $var[0]
        MsgBox(4096,"Drive " & $i, $var[$i])
    Next
EndIf