开发者

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

开发者 https://www.devze.com 2023-01-25 04:45 出处:网络
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 ye

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

精彩评论

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