Merge Two VHDs
Merges virtual hard disks in a differencing virtual hard disk chain. The merge is from a specified source child disk to a specified destination child disk. Merge is an offline operation; the virtual hard disk chain must not be attached when merge is initiated.
Input Parameters
VHD File Path |
String |
Yes |
Specifies the path to the child in the virtual hard disk chain that is the source for the merge command. If a filename or relative path is specified, the virtual hard disk path will be calculated relative to the current working directory. |
Second VHD File and Destination for Merging |
String |
Yes |
Specifies the path to the child in the virtual hard disk chain that is the destination for the merge command. |
Output Parameters
Result |
Number |
Returns a success value of zero or any value other than zero to indicate failure. |
Example Input Parameters
VHD File Path |
String |
Yes |
c:\test\Child4.vhdx |
Second VHD File and Destination for Merging |
String |
Yes |
c:\test\Child2.vhdx |