I'd like to add VSS support to 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With