以编程方式挂载VHD文件。 [英] Mount VHD file programmatically.

查看:136
本文介绍了以编程方式挂载VHD文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想编写一个应用程序来在任何Windows系列操作系统中安装VHD文件(就像WINMOUNT一样)。是否有可能以编程方式?对此有何帮助?



/谢谢

解决方案

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



如果要拥有自己的应用程序,用户可以在其中选择VHD,然后使用ProcessStartInfo对象将正确的命令行参数传递给diskpart.exe,则可以使用Process.Start()和ProcessStartInfo。

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

解决方案

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.


这篇关于以编程方式挂载VHD文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆