Win7 system uses CMD commands to create VHD virtual hard disk files skills

  

1, first click & ldquo; start & mdash; & mdash; search & rdquo;, enter diskpart in the open search box, and right-click to select the administrator to run into the DISKPART management interface;

2 Then enter the following command at the command prompt to create the VHD command code content:
create vdisk file=”d:/win7.vhd” maximum=30000 type=fixed
Copy the code content to the command In the prompt window, where file is followed by the specific path of vhd, maximum refers to the maximum size of the VHD file (in MB), and type is used to set the type of VHD (fixed means VHD is the fixed size of maximum).
3, create a VHD and mount it as follows:
select vdisk file=”d:/win7.vhd”
attach vdisk
Copy this code to the command prompt The window is OK, so the VHD file is created. If the user needs to use it, it can be partitioned and formatted through the disk management graphical interface.
Copyright © Windows knowledge All Rights Reserved