How to edit Virtual Hard Drives(vhd) with C#?

3.2k views Asked by At

I have a given .vhd-File and want to edit it programmatically in C# WITHOUT MOUNTING IT. Does anyone know how to do this(possibly with an api or library)?

2

There are 2 answers

0
PCG On BEST ANSWER

Take a look at discutils. Might be what you want.

http://discutils.codeplex.com/

0
hmd.ai On

you can use discutils: http://discutils.codeplex.com/

"DiscUtils is a .NET library to read and write ISO files and Virtual Machine disk files (VHD, VDI, XVA, VMDK, etc). DiscUtils is developed in C# with no native code (or P/Invoke)."