I guys, i trying check if current system HD have a "D" partition. To do something like:
If true then Drivesetlabel "C" -> Operational System, Drivesetlabel "D" -> User FIles
else
Drivesetlabel "C" -> Operational System
but i cannot do a rellation between c and d to cehck if are from same hd. Thanks in advance
You want to use DriveGetType
#include <Array.au3>
Local $aDrives = DriveGetDrive("ALL")
Local $aDrivesWithType = DriveGetDriveAndType($aDrives)
_ArrayDisplay($aDrivesWithType)
Func DriveGetDriveAndType($aDriveGetDrive)
Local $aReturn[UBound($aDriveGetDrive, $UBOUND_ROWS)][2]
For $i = 0 To UBound($aDriveGetDrive, $UBOUND_ROWS) - 1
$aReturn[$i][0] = $aDriveGetDrive[$i]
$aReturn[$i][1] = DriveGetType($aDriveGetDrive[$i])