Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backups with Volume Shadow Copy Service (VSS) under vb.net

Status
Not open for further replies.

wtfia2k

ISP
Jun 20, 2005
5
DE
Hi,

I'm trying for days now to figure out how to implement "Volume Shadow Copy Service" (VSS) under vb.net.
The goal is to get a tiny application the runs at XP, Vista and 2003 to make backups of files in use (locked).

I read almost the complete Internet and Google-Cache ::) but didn't find any helpful startup-point. The "Volume Shadow Copy Service SDK 7.2" is C++ only, what's definitly not my language

Documentation can be found at: []

Anybody out there that can give me a hint [peace]

Regards,

wtfia2k
 
Well, maybe a hint, or perhaps a clue, but not much more...

<The "Volume Shadow Copy Service SDK 7.2" is C++ only

I'm not at all sure that's the case. Rather, I'd say the DLL is documented using C++ syntax. I'm really more of a VB6 expert than a .Net one, but it would seem that at the very least you could use interop services to declare the functions that you need in VB6 terms and use them.

How to translate the C++ into Declare statements is beyond my skill, but there are some people in the VB6 forum who might be able to. (You might check thread222-1400945.)Also, I found this page which references a book that you can buy on Amazon that the page claims will give you this information.

HTH

Bob
 
I didn't quite understand. Was this code working or not working?
 
creating a shadow copy -> YES
accessing the shadow copy to extract files out of it -> NO
I'm getting a NotImplementedException.
 
I see now. Well, it is version 1.0 and it's from Microsoft.... I wonder if you could find a function via the API rather than using the COM class. If you find a function in the C++ doc that will do what you're looking for, it should be possible to translate it into a VB6 Declare statement and run it via interop. (I think that's the way that it's done in VB.Net, isn't it?)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top