问题
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