select vdisk

选择指定的虚拟硬盘 (VHD),并将焦点转移到该硬盘。

Syntax

select vdisk file=<full path> [noerr]

Parameters

Parameter Description
file=<full path> 指定现有 VHD 文件的完整路径和文件名。
noerr 仅用于编写脚本。 出现错误时,DiskPart 继续处理命令,就像未发生错误一样。 如果没有此参数,则错误会导致 DiskPart 退出并显示错误代码。

Examples

To shift the focus to the VHD named c:\test\test.vhd, type:

select vdisk file=c:\test\test.vhd