如何使用.NET访问VMWare文件系统

编程入门 行业动态 更新时间:2024-10-22 19:27:44
本文介绍了如何使用.NET访问VMWare文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在我的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文件系统

本文发布于:2023-10-31 18:49:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1546967.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   文件系统   NET   VMWare

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!