Selects the specified disk and shifts the focus to it. Syntax: SELECT DISK= SELECT DISK=SYSTEM SELECT DISK=NEXT SELECT DISK= ...

    Selects the specified disk and shifts the focus to it.

Syntax:  SELECT DISK=
         SELECT DISK=SYSTEM
         SELECT DISK=NEXT
         SELECT DISK=

    DISK=    
                The DiskPart disk index number of the disk to receive
                focus.

    DISK= 
                The location path of the disk to receive focus.

    DISK=SYSTEM 
                On BIOS machines, BIOS disk 0 will receive focus.
                On EFI machines, the disk containing the ESP partition
                used for the current boot will receive focus. On EFI 
                machines, if there is no ESP, or there is more than 
                one ESP present, or the machine is booted from Windows PE,
                the command will fail.

    DISK=NEXT   
                Once a disk is selected, this command is used to iterate
                over all disks in the disk list. The next disk in the list
                will receive focus. If the next disk is the start of the
                enumeration, the command will fail and no disk will have 
                focus.


    If no options are specified, the select command lists the disk that
    currently has the focus. You can view the DiskPart index numbers
    for all disks on the computer by using the LIST DISK command.

Example:

    SELECT DISK=1
    SELECT DISK=SYSTEM
    SELECT DISK=NEXT
    SELECT DISK=PCIROOT(0)#PCI(0100)#ATA(C00T00L01)