在 CMD shell 中,将文件从主机操作系统复制到来宾虚拟机会锁定文件 (VMware Player/Workstation)
我们正在运行适用于 Windows 的最新版本的 VMWare Player 和 Workstation。两种产品的以下行为是相同的。
问题:我们在来宾操作系统(XP、Vista、Windows 7)中打开 CMD 提示符,并使用标准 CMD shell 复制命令从主机操作系统复制文件:
copy z:\C$\testfiles
复制成功完成,但从此开始向前看,复制到客户操作系统的所有文件现在都在主机操作系统上锁定。
如果我们使用 Windows 资源管理器复制文件,则不会发生这种情况 - 仅当通过 CMD shell 复制文件时才会发生这种情况。
正如本问题开头所提到的,这种行为可以在跨多台计算机和多个来宾操作系统的 VMWare Player 和 VMWare Workstation 中重现。
我用谷歌搜索了解决方法,但没有成功。
任何想法表示赞赏。
马尔科姆
We're running the latest versions of VMWare Player and Workstation for Windows. The following behavior is identical across both products.
Problem: We open a CMD prompt in our guest OS (XP, Vista, Windows 7) and copy files from our host OS using the standard CMD shell copy command:
copy z:\C$\testfiles
The copy completes successfully, but from that point forward, all the files that were copied to our guest OS are now LOCKED on our host OS.
This does not happen if we use Windows Explorer to copy files - it only happens when files are copied via the CMD shell.
As mentioned at the start of this question, this behavior is reproducible in both VMWare Player and VMWare Workstation across multiple machines and multiple guest OS's.
I've googled for a workaround, but without success.
Any ideas appreciated.
Malcolm
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过使用 Robocopy 来代替?它应该在 Vista/Windows7 上开箱即用,您可以下载管理资源工具包以在 XP 上获取它。它有多种复制模式,希望不会做老式“复制”所做的事情。
另一种解决方案是使用名为 Unlocker 的实用程序,该实用程序能够在大多数情况下释放文件锁定案例。非常方便。
Have you tried using Robocopy instead? It should be on Vista/Windows7 out of the box, and you can download an admin resource toolkit to get it on XP. It has multiple copy modes and hopefully, won't do what the old school 'copy' is doing.
An alternate solution would be to grab a utility called Unlocker, which is capable of releasing file locks in most cases. It's quite handy.