Select volume


Applies To: Windows Server 2008,Windows Server 2008 R2,Windows Vista,Windows 7

Selects the specified volume and shifts the focus to it. This command can also be used to display the volume that currently has the focus in the selected disk.

For examples of how this command can be used, see Examples.

Syntax


Copy Code

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

Parameters

Parameter

Description

<n>

The number of the volume to receive the focus. You can view the numbers for all volumes on the disk currently selected by using the list volume command in DiskPart.

<d>

The drive letter or mount point path of the volume to receive the focus.

Remarks

Examples

To shift the focus to volume 2, type:


Copy Code

select volume=2

To shift the focus to drive C, type:


Copy Code

select volume=c

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


Copy Code

select volume=c:\mountpath

To display the volume that currently has the focus in the selected disk, type:


Copy Code

select volume

Additional references

Command-Line Syntax Key

DiskPart