Partition information from CMD [closed]
Asked Answered
J

1

14

Is there any CMD command line that shows all partition letters. For example: C, D, E...

Can that command also show all the partition's information? Free space, used space, total space?

Jesus answered 15/3, 2010 at 9:55 Comment(0)
E
34

You can use diskpart

c:\>diskpart

Microsoft DiskPart versión 6.1.7600
Copyright (C) 1999-2008 Microsoft Corporation.
En el equipo: DV6470

DISKPART> list volume

  Núm Volumen Ltr  Etiqueta     Fs     Tipo        Tamaño   Estado     Info
  ----------- ---  -----------  -----  ----------  -------  ---------  --------
  Volumen 0     D                      DVD-ROM         0 B  Sin medio
  Volumen 1         Reservado   NTFS   Partición    100 MB  Correcto   Sistema
  Volumen 2     C   C           NTFS   Partición     38 GB  Correcto   Arranque

It accepts a script as command line parameter:

listvol.cmd:

echo list volume > listvol.scr
diskpart /s listvol.scr
del listvol.scr
E answered 16/3, 2010 at 23:3 Comment(2)
How to use script?? I write diskpart /s list volume and gives me error. I use Win XP 64bitJesus
@Jesus - You need to create a text file with the commands. Answer edited.Clostridium

© 2022 - 2024 — McMap. All rights reserved.