MOSS: Copying Files and Versions from one List to another

Hey guys,

I have to write a little a tool which copies the files from one library to another. But the requirement was to copy the versions also.

So I searched a lot and now I have a good logic to resolve this issue.

 


Posted Jul 17 2009, 03:13 PM by Nadine Storandt
Filed under: ,

Comments

Sebastian Matias Nunez Leal wrote re: MOSS: Copying Files and Versions from one List to another
on 12-01-2009 17:32

Thks for the information, this code was very useful. If you need some help, you can contact me by my blog.

Great Job!

thanks a lot

Gai3 wrote re: MOSS: Copying Files and Versions from one List to another
on 11-16-2010 10:40

This is within the same site right? can u help me to do so between two sites and only the contents...not looking for version or attachments

Thanks in advance

Nadine Storandt wrote re: MOSS: Copying Files and Versions from one List to another
on 11-16-2010 10:47

Hi Gai3,

Yes this for the same site.

To use this code between two sites you only must instantiate a new SPWeb object which represents the destination site an open there the desired Doc Library.

cheers

developers.de is a .Net Community Blog powered by daenet GmbH.