Volume Shadow Copy

Hi all.

I assume that this is not the correct place to post this question. If so, please point me to the correct place.

Here is my question:

I want to create an application that will backup files. I want to prevent locking the files during the backup. So, I want to use Volume Shadow Copy service.

This is what I need to do (I think so):

- implement a requestor that will tell VSS to create a shadow copy of the specified files

- get the location of the shadow copy of the files from VSS

- backup the files from the shadow copy location.

Can I make direct calls to the VSS API from c# (using PInvoke)? Or I need to create a C++ library that will implement the requestor?

Any examples that can guide me?

Or maybe another approach?

Thank you very much.

[827 byte] By [corolar] at [2007-12-24]
# 1
You can find more information including samples in the Volume Shadow Copy SDK. You can download version 7.2 at http://www.microsoft.com/downloads/details.aspx?FamilyID=0B4F56E4-0CCC-4626-826A-ED2C4C95C871&displaylang=en
NikhilRajwade at 2007-8-31 > top of Msdn Tech,.NET Development,Common Language Runtime...
# 2
Thanks.
corolar at 2007-8-31 > top of Msdn Tech,.NET Development,Common Language Runtime...

.NET Development

Site Classified