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,683 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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…
A short article about problems I had with the new location API and permissions in Marshmallow
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Progress

615 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