开发者

Partition information from CMD [closed]

开发者 https://www.devze.com 2022-12-23 02:43 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Closed 7 years ago.

Improve this question

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?


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
0

精彩评论

暂无评论...
验证码 换一张
取 消