Sign in to follow this  
Followers 0
EdyYusof

[Solved]How to get partitions volume

1 post in this topic

#1 ·  Posted (edited)

 



2017-03-05_014817.png

#include 
Local $aArray = DriveGetDrive("ALL");("FIXED")
_ArrayColInsert($aArray,0)
_ArrayColInsert($aArray,2)
_ArrayColInsert($aArray,3)
For $i=1 To $aArray[0][1]
$drv=$aArray[$i][1]
$aArray[$i][2]=hex(DriveGetSerial($drv))
$aArray[$i][3]=DriveGetLabel($drv)
$aArray[$i][0]="Volume ?"
Next
_ArrayDisplay($aArray,"Test Array")





 



Microsoft DiskPart version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: EDY-PC



  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          465 GB      0 B
  Disk 1    No Media           0 B      0 B
  Disk 2    Online          111 GB      0 B



  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0                             DVD-ROM         0 B  No Media
  Volume 1     I   20111219212  CDFS   CD-ROM        97 MB  Healthy
  Volume 2     D   USB OS7: 1   NTFS   Partition   7506 MB  Healthy    System
  Volume 3     C   OS7 Lite X6  NTFS   Partition     28 GB  Healthy    Boot
  Volume 4     E   Program: 3   NTFS   Partition    106 GB  Healthy    Pagefile
  Volume 5     F   Document: 4  NTFS   Partition    323 GB  Healthy
  Volume 6     K                       Removable       0 B  No Media
  Volume 7     S   USB OS-Win7  NTFS   Partition   7248 MB  Healthy
  Volume 8     Q   Black Ext 1  NTFS   Partition     13 GB  Healthy
  Volume 9     R   Black Ext 9  NTFS   Partition     91 GB  Healthy



Leaving DiskPart...



 



Need help, how to get partition volume, i want fill in array e.g  vol 2 to drive D:, vol 3 to drive C:, vol 4 to drive E, like data from Diskpart



I find in forum, can't find correct script command to get Partitions volume,



and try using Autoit Script-o-matic, but no one options can get partitions volume ?

Edit 05/03/2017 [Solved]
topic/95010-get-output-from-cmdexe

I using this script to get text from cmd, but take some times to get diskpart ouput

Thanks
 



 

Edited by EdyYusof

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0