Announcement

Collapse
No announcement yet.

List Disk Partition Properties

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • List Disk Partition Properties

    Please use the below script to get properties of disk partition

    Code:
    import os
    os.popen('echo list disk > script.txt').read()
    os.popen('echo select disk 0 >> script.txt').read()
    os.popen('echo list partition >> script.txt').read()
    print os.popen('diskpart /s script.txt').read()
    os.popen('del script.txt').read()
    Sample Output:
    Click image for larger version

Name:	List Disk Partition Properties.PNG
Views:	1
Size:	15.4 KB
ID:	4654

    Last edited by Purushothaman; 11-04-2016, 01:18 PM.
Working...
X