简体   繁体   English

在XP中取消快照(卷影复制)

[英]Unexposing a snapshot in XP (Volume Shadow Copy)

Microsoft provides a way of mounting a read-only snapshot as a volume using their vshadow program. Microsoft提供了一种使用其vshadow程序将只读快照作为卷安装的方法。 However, it does not provide a way to unmount the snapshot (I wonder what would happen if I deleted the snapshot?). 但是,它没有提供卸载快照的方法(我想知道如果删除快照会发生什么?)。 Going through the documentation on MSDN I found UnexposeSnapshot Method , and added the ability to use it in the vshadow. 通过MSDN上的文档,我找到了UnexposeSnapshot Method ,并添加了在vshadow中使用它的功能。 However, it says that it's only supported for Vista and Server 2008 machines. 但是,它表示它仅支持Vista和Server 2008机器。 Is there anyway around this? 有没有办法解决? The XP configuration for vshadow won't compile. vshadow的XP配置无法编译。 It would be really bizarre if Microsoft wrote a way to mount volume shadow copies in XP and server 2003, yet didn't provide a way to unmount them. 如果微软编写了一种在XP和Server 2003中安装卷影副本的方法,那将是非常奇怪的,但却没有提供解除它们的方法。

Any ideas? 有任何想法吗?

Use Windows' built-in mount management utility mountvol.exe . 使用Windows的内置安装管理实用程序mountvol.exe

On API level, you should be able to use DeleteVolumeMountPoint . 在API级别,您应该能够使用DeleteVolumeMountPoint

There is a command line tool inside the Windows Vista platform sdk that can be used to create batch files that operate on snapshots. Windows Vista平台sdk中有一个命令行工具,可用于创建在快照上运行的批处理文件。 I don't know if you mean that one, but it definitively works this way: You invoke it and it will create the snapshot. 我不知道你是否意味着那个,但它确实以这种方式工作:你调用它,它将创建快照。 Then it will launch another process that you specify. 然后它将启动您指定的另一个进程。 Then that process (eg another batch file or the same batch file) will run. 然后将运行该过程(例如,另一个批处理文件或相同的批处理文件)。 When it ends, the command line tool will remove and delete the snapshot. 结束时,命令行工具将删除并删除快照。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM