CmdID

CmdID / Commands / select

select disk

Selects the specified disk and shifts the focus to it. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0
select disk={<n>|<disk path>|system|next}

To shift the focus to disk 1, type

select disk=1Identify

To select a disk by using its location path, type

select disk=PCIROOT(0)#PCI(0100)#atA(C00T00L01)Identify

To shift the focus to the system disk, type

select disk=systemIdentify

To shift the focus to the next disk on the computer, type

select disk=nextIdentify
<n>Specifies the number of the disk to receive focus. You can view the numbers for all the disks on the computer by using the list disk command in DiskPart. NOTE When configuring systems with multiple disks, don't use select disk=0 to specify the system disk. The computer may reassign disk numbers when you reboot, and different computers with the same disk configuration can have different disk numbers.
<disk path>Specifies the location of the disk to receive focus, for example, PCIROOT(0)#PCI(0F02)#atA(C00T00L00). To view the location path of a disk, select it and then type detail disk.
systemOn BIOS computers, this option specifies that disk 0 receives focus. On EFI computers, the disk containing the EFI system partition (ESP), used for the current boot, receives focus. On EFI computers, the command will fail if there's no ESP, if there's more than one ESP, or if the computer is booted from Windows Preinstallation Environment (Windows PE).
nextAfter a disk is selected, this option iterates over all disks in the disk list. When you run this option, the next disk in the list receives focus.