在我的C#3.5程序中,我想从VMWare虚拟机访问NTFS/FAT驱动器.我有带Windows 7的vmdk文件.
In my C# 3.5 program I would like to access a NTFS/FAT drives from VMWare virtual machine. I have vmdk file with Windows 7 inside.
是否有任何编程方式从vmdk文件挂载此类驱动器,并使用常规的.NET API(如File.ReadAllText,Directory.GetDirectories等)来访问它们?
Is there any programmatic way to mount such drives from vmdk file and access them with the regular .NET API like File.ReadAllText, Directory.GetDirectories and so on?
推荐答案我认为您应该能够使用VMWARE Disk MOunt实用程序挂载虚拟机磁盘映像(.vmdk)-然后,您应该能够像访问任何虚拟机一样访问它其他驱动器-有关磁盘快照的一些警告-找到了更多信息此处
I think you should be able to mount the virtual machine disk image (.vmdk) using VMWARE Disk MOunt utility - then you should be able to access it like any other drive - there are some caveats regarding disk snapshots - found some more info here
该实用程序具有命令行界面,因此应该可以使用Process.Start()执行安装操作
The utility has a command line interface so it should be possible to use Process.Start() to execute the mount operation
更多推荐
如何使用.NET访问VMWare文件系统
发布评论