Is there a way programatically copy a file from source to target dob lib? Source would be always static. target may vary.
2 Answers
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
-
Thanks for finding the solution. I was under the time crunch so I just used spfile.add method and adding files from local.– Robert GCommented May 31, 2011 at 22:37
-
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.