Listing all Shadow copies on system

Mar 26, 2009 at 9:11 AM
goodmorning

i must say i love alphavss, cause otherwise i had to write the wrappers and im not that good in C++, so thank you

but my problem is that i am unable to list all copies on my system.
i would like to print the copies on my console but im unable to find the right methods...
does anyone know how to do this?

thank you,
Dr.A
Coordinator
Mar 29, 2009 at 1:18 PM
Something like the following should work:

      static void Main(string[] args)
      {
         IVssImplementation vssImplementation = VssUtils.LoadImplementation();

         using (IVssBackupComponents vss = vssImplementation.CreateVssBackupComponents())
         {
            vss.InitializeForBackup(null);

            // Note that this SetContext call may not be used on Windows XP
            vss.SetContext(VssSnapshotContext.All);

            foreach (VssSnapshotProperties props in vss.QuerySnapshots())
            {
               Console.WriteLine(props.SnapshotId);
            }
         }
     }
Mar 31, 2009 at 7:03 AM
Edited Mar 31, 2009 at 8:16 AM
yes it did
thanx, you really helped me out here

i owe you one m8