How to copy SharePoint 2010 Document Library to SharePoint 2013 Programmatically?

Hi,

There are a huge documents stored in multiple document libraries in SharePoint 2010. I need to write a windows application to copy all the SP 2010 document library documents to SharePoint 2013 document library. If a document named "ProjectReport.xls" is stored under "ProjectOne" folder of "ProjectDocuments" library in SharePoint 2010, I need to create a library with same document library name and folder name in SharePoint 2013 and copy the document under it, and while copying I need to change the meta data of the file like version and description.

Can any one help me to do this?

Thank you in Advance.

July 20th, 2015 8:27am

hi

2 ways

A. Use powershell script to copy one by one documents from source to dest shapreoint 2013 library

http://social.technet.microsoft.com/wiki/contents/articles/5209.powershell-script-to-copy-documents-between-sites-in-sharepoint-2007-or-sharepoint-2010.aspx

B. export the document library from sp2010  and impot it in dest library

http://sharepoint.stackexchange.com/questions/60615/how-to-export-a-list-in-sharepoint-2010-and-import-it-into-2013

Free Windows Admin Tool Kit Click here and download it now
July 20th, 2015 9:04am

Hi Romeo,

Thank you for the reply. But I should create this copy function as a C# windows application. The user will enter source site url (SharePoint 2010 site url). I need to fetch all document libraries and the files underneath the libraries and show them to user, and user can edit some meta data values and when he hit the migrate button, it should be copied to SharePoint 2013 site.

Can you please help me out in this ...

Thank you

July 20th, 2015 9:27am

Hi,

Here are two solutions from codeplex with code for your reference:

SharePoint List, Document/Form Library Migrator

http://spdocsmigrator.codeplex.com/documentation

SharePoint Content Deployment Wizard

http://spdeploymentwizard.codeplex.com/

Best Regards

Free Windows Admin Tool Kit Click here and download it now
July 21st, 2015 3:18am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics