0

Is there a way programatically copy a file from source to target dob lib? Source would be always static. target may vary.

1
  • Are you using 2010?
    – Lori
    Commented May 31, 2011 at 22:07

2 Answers 2

1

Here is a good example that should work either on 2007 or 2010

http://geek.hubkey.com/2007/12/move-sharepoint-document-library-files.html

2
  • Thanks for finding the solution. I was under the time crunch so I just used spfile.add method and adding files from local.
    – Robert G
    Commented May 31, 2011 at 22:37
  • Glad to be helpful :)
    – Renzo
    Commented May 31, 2011 at 22:52
1

If you are using 2010, you can use the Content Organizer as well. It will route the items to the appropriate location based on metadata and rules. This would save you the need to use code when you can do it out of the box.

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.