7

Is it a way to create a VHD virtual drive image from files in existing folder? I know that it can be done programmatically via .NET framework API, but maybe it's already exists a tool that can be run like

create my.vhd c:\my
grigoryvp
  • 3,975

4 Answers4

10

This article explains how to do this.

in short for windows 7/2008: go to computer management, click disk management, right click disk management, click create VHD, enter location. Select the disk, right click, initialize with MBR, right click "unallocated" string, click new simple volume, etc, map the drive letter.

Then copy your files and folder to the drive letter, once done, right click the disk (on the left side) and select detach VHD.

mgorven
  • 31,399
xhafan
  • 201
7

Try to copy your folder to a USB stick for example, then use Disk2Vhd from Sysinternals.

Dave M
  • 4,494
Phil Swiss
  • 1,457
1

In Windows 2012 R2/ Win 8.1 or 10 you can create empty VHD, mount it and copy data :

  • Start computer Management or open empty MMC console
  • Select Disk Management or Add Disk Management snap-in
  • Right click on Disk Management and choose Create VHD, enter location, size, type
  • Now you can Mount this VHD to your system, assign a drive letter
  • Copy data to your VHD and then detach VHD in Disk Management

that`s All !

Ferdinand
  • 11
  • 1
0
  1. Share the folder you want to create the drive from so that now it is a network folder (Right click on folder and choose share)

  2. Create a network drive from the folder you have shared with the button "Create Network Drive" at the top of the "My Computer" window (Win7)