5

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)?

SqlRyan
  • 33,116
  • 33
  • 114
  • 199
  • I've been searching a lot until now, but like you the only one I've found is AlphaVSS. Unfortunately now it is quite stopped.... – Marco Apr 11 '11 at 21:00
  • Development of AlphaVSS hasn't actually stopped, just moving very slowly unfortunately. But development is progressing nevertheless. – DeCaf Sep 10 '11 at 16:23
  • @DeCaf - Thanks for the update - I just checked the project and saw that there's been recent activity. I suppose development never really stops - the project I'm building (and for which I asked this question) hasn't seen much activity in the last year either, but it slowly marches forward when I have time. Here's to both of us making some real progress! – SqlRyan Sep 18 '11 at 03:30

1 Answers1

1

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

Aaron
  • 2,341
  • 21
  • 27
  • This is an interesting angle - thanks for proposing it! If it works well, it will be an easy cross-OS-version way to do the shadow copies, and I'll be eternally grateful. – SqlRyan Sep 11 '11 at 14:12
  • @STLDeveloper I actually abandoned this project not long after posting this response and never got to attempt implementing this suggestion. I'll accept it as it was the only response I received, and appears to solve the problem, but I can't confirm! – SqlRyan Jul 16 '13 at 21:26