How to access VMWare filesystem with .NET means

限于喜欢 提交于 2019-12-25 08:04:31

问题


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.

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?


回答1:


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

The utility has a command line interface so it should be possible to use Process.Start() to execute the mount operation



来源:https://stackoverflow.com/questions/5195832/how-to-access-vmware-filesystem-with-net-means

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!