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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Math Equation 23 149
Query group by data in SQL Server - cursor? 3 87
Eclipse with various Java releases 7 92
Survey branching tutorial 11 78
This is an explanation of a simple data model to help parse a JSON feed
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
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…

710 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