Select partition


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

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

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

Syntax


Copy Code

select partition=<n>

Parameters

Parameter

Description

partition=<n>

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

Remarks

Examples

To shift the focus to partition 3, type:


Copy Code

select partitition=3

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


Copy Code

select partition

Additional references

Command-Line Syntax Key

DiskPart