备份其他进程正在使用的文件
我的应用程序当前使用第三方 API,该 API 有一个错误,迫使我以 32 位构建它。不幸的是,这与 Window 的卷影复制相冲突,因为这显然必须在 64 位中运行才能工作。
我可以使用 VSS 的任何替代方案来安全地备份其他进程当前正在使用的文件吗?
My application currently uses a third party API that has a bug forcing me to build it in 32bit. Unfortunately this conflicts with Window's Volume Shadow Copy as this apparently must be run in 64bit to work.
Are there any alternatives to VSS I can use to safely backup files that are currently being used by another process?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据您的要求,您可以执行如下简单的操作:
这在某些情况下会起作用,因为它可以读取锁定的文件。但我强烈建议您首先弄清楚您的要求并在此处发布。
即,我们谈论的是在“随机”位置写入数据的 2GB 文件吗?或者时不时附加新数据的 2mb 日志文件?
Depending on your requiremen you can do something as simple as this:
This will work in some situtions, as it can read locked files. But i strongly recommend that you figure out your requirements first and post here.
IE are we talking about 2gb files that have data written to them in "random" locations? Or 2mb log files that are appended with new data every now and then?