开发者

Using Volume Shadow Copy Service (VSS) from .NET - best method/project available?

I'd like to add VSS support t开发者_Go百科o an application I'm developing and the only good packaged method available seems to be AlphaVSS, though it hasn't been actively developed in almost two years. Are there other projects out there that I just can't find, or is there a more straightforward method to accessing the "API" (if you can call it that)?


Could you use WMI Win32_ShadowCopy class. I don't have a C# sample, but working with WMI is usually nicer in PowerShell in any case:


function global:CREATE-SHADOW ( $Drive ) { 
  (Get-WmiObject -list win32_shadowcopy).Create($Drive,"ClientAccessible") 
}

via: http://www.energizedtech.com/2010/04/powershell-creation-of-a-shado.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜