|
select volume
|
Selects the specified volume, where n is the volume number, and gives it focus. If no volume is specified, the select command lists the current volume with focus. You can specify the volume by number, drive letter, or mount point path. On a basic disk, selecting a volume also gives the corresponding partition focus.
|
|
assign letter=
L
|
Assigns a drive letter, L, to the volume with focus. If no drive letter is specified, then the next available drive letter is assigned. If the drive letter is already in use, an error is generated.
|
|
remove letter=
L
|
Removes the drive letter, L, from the volume with focus. If no drive letter or mount point is specified, then DiskPart removes the first drive letter or mount point it encounters.
The remove command can be used to change the drive letter associated with a removable drive. You cannot remove the drive letters on system, boot, or paging volumes. In addition, you cannot remove the drive letter for an OEM partition, any GPT partition with an unrecognized GUID, or any of the special, non-data, GPT partitions such as the EFI system partition.
|