Solved

AutoIT - DriveGetDrive option for physical disks (like disk 0 - via diskpart), instead of mounted volumes (like drive c:)

Posted on 2012-04-09
2
2,492 Views
Last Modified: 2012-04-14
Is there a method to obtain physical disks (like disk 0 - via diskpart), instead of mounted volume (like drive c:) via AutoIT?

something similar to drivegetdrive, maybe (something like what i have below, but providing disk instead of drive)?




Global $driveList, $Drive

$driveList = DriveGetDrive("fixed")
$loc = 175
$inc = 0

for $p = UBound($driveList)-1 to 1 step -1
            $Drive[$p] = GUICtrlCreateCombo("", 242, $loc + $inc, 145, 25)
            GuiCtrlSetData($Drive[$p], "|" & _ArrayToString($driveList, "|", 1))
            $inc += 25
next
$inc = 0
0
Comment
Question by:2newbie
2 Comments
 
LVL 29

Accepted Solution

by:
matrixnz earned 500 total points
ID: 37825972
0
 

Author Comment

by:2newbie
ID: 37835849
Thanks,
             However, to clarify, I want to simply get the disk ID numbers of all physical disks, as indicated by say, diskpart, i.e. Like running diskpart - list disk - select disk 0 or select disk 1. I don't need to obtain drive letter or need to associate drive letter with disk ID.

So if there are say - 3 disks in the system, I want the user to be presented with or to select between 0, 1 or 2. If there are 2, then they are presented with 0 or 1, etc.

Sorry for the confusion.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now