Using Volume Shadow Copy Service (VSS) in Delphi

Does anyone have a sample code for copying open (in use and locked with another program) files using the Volume Shadow Copy Service (VSS) API?

There was an article in "The Delphi Magazine" (September 2005) about this. But this code is no longer available, and even if it was, it is not current.

I'm looking for sample code that works with the current version of the Volume Shadow Copy Services libraries.

+1


source to share


2 answers


there is a digital edition on the USB-disk "The Delphi Magazine". you can order this from your web page.

maybe someone created a thread of this stick.

Update



I found a sample here: http://www.google.com/codesearch/p?hl=de#XIdFp1PskBE/VSS/VssAPI.pas

The top link is deprecated, the header files can also be found here: http://www.delphipraxis.net/998560-post3.html

+1


source


I found a working (XE2) example here: http://www.rathlev-home.de/sources/delphi.html#progsxe2

To compile with XE8 get the latest "gnugettext.pas"



This package contains all the blocks needed to compile the delphi program, which creates a shadow copy of the volume. There is also a sample VsToolkit application. I compiled it with XE2 and XE8 and it works great ...

0


source