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,459 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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 …

707 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

17 Experts available now in Live!

Get 1:1 Help Now