select volume

选择指定的卷并将焦点转移给它。 此命令还可用于显示当前在所选磁盘中具有焦点的卷。

Syntax

select volume={<n>|<d>}

Parameters

Parameter Description
<n> 接收焦点的卷编号。 You can view the numbers for all volumes on the disk currently selected by using the list volume command in DiskPart.
<d> 接收焦点的卷的驱动器号或装入点路径。

Remarks

  • 如果未指定卷,此命令将显示当前在所选磁盘中具有焦点的卷。

  • 在基本磁盘上,如果选择卷,则还会为相应分区赋予焦点。

    • 如果已选择具有相应分区的卷,则将自动选择该分区。

    • 如果已选择具有相应卷的分区,则将自动选择该卷。

Examples

To shift the focus to volume 2, type:

select volume=2

To shift the focus to Drive C, type:

select volume=c

To shift the focus to the volume mounted on a folder named c:\mountpath, type:

select volume=c:\mountpath

若要显示当前在所选磁盘中具有焦点的卷,请键入:

select volume