We are using SP 2013 on-prem, and I am writing some functionality in c# to move document from one site to another, within the same site collection.

I have read a litte about the SPFile.MoveTo, but it's samples are a bit confusing: some say they can only copy, and some that they can only move files within the same site; https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfile.moveto.aspx

I am looking for samples where I can move a document from one document library to a document library on another site, and keep the metadata and versions log.

  • This question has already been asked and answered a few times in this forum. See sharepoint.stackexchange.com/questions/1278/… Commented Jan 18, 2017 at 14:04
  • The SPFile.Moveto can only be used to move files inside the same SharePoint site. I need to move the document in another site, and am looking for samples where that has been achieved.
    – Ilyas
    Commented Jan 18, 2017 at 19:28
  • Hi Lars. I want to buy your product, but I don't need the graphical stuff or wsp, only need the powershell commandlets and API I can use. Is that possible? I don't want to install wsp we are not going to use etc.
    – Ilyas
    Commented Jan 19, 2017 at 12:41
  • Ilyas - thanks! This is not the right forum for sales and support. Have replied to your email with answers. Commented Jan 19, 2017 at 18:31

1 Answer 1


Yep, the "Send to" sends a copy to another location so you can do it again and again to distribute a copy of the master file to other sites.

Is this a one time move or will you need to do it over and over?

Sometimes a simplee copy / paste from each library's windows explorer works for users. (unless your trying to do something more complex)

SharePoint designer might have some actions to copy a document to a specified path if you want to go that route.

Records center sites are also rather sophisticated with routing documents to different parts of SharePoint based on rules, content types and other info.

  • I have checked all the options, and we can not do it by using the GUI. We have a heavily customized solution. This will be done using a workflow, and we need to move, not copy. I am looking for some samples where documents are moved from one subsite to another.
    – Ilyas
    Commented Jan 18, 2017 at 19:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.