[au3]Local $var = DriveGetDrive("all")
Local $Drives = ""
If Not @error Then
Local $Var = _GetDiskType()
For $J = 1 To $Var[0]
$Drives = $Drives & $Var[$J] & @CRLF
Next
EndIf
MsgBox(0,0,$Drives)
Func _GetDiskType()
Local $Disk = "HKLM\SYSTEM\CurrentControlSet\Services\Disk\Enum\"
Local $Enum = "HKLM\SYSTEM\CurrentControlSet\Enum\"
Local $Count = RegRead("HKLM\SYSTEM\CurrentControlSet\Services\Disk\Enum\", "Count")
Dim $Return[$Count + 1]
$Return[0] = $Count
For $J = 1 To $Count
$Return[$J] = RegRead($Enum & RegRead($Disk, $J - 1), "FriendlyName")
Next
Return $Return
EndFunc ;==>_GetDiskType[/au3] |