Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I would like to write a application to mount a VHD file in any of the windows family OS (Like WINMOUNT does). Will it be possible programmatically? Any help on this?

/Thanks
Posted

1 solution

http://www.howtogeek.com/51174/mount-and-unmount-a-vhd-file-in-windows-explorer-via-a-right-click/[^]

You can use Process.Start() and ProcessStartInfo if you want to have your own application in which the user select a VHD, and then you pass the correct command line arguments to diskpart.exe by using the ProcessStartInfo object.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900