none
Download files and folders from sharepoint to local

    Question

  • There is this request to synchronize the files and folders in Sharepoint directories onto the local drives of 10 client PCs (download from sharepoint to local). There will be a daily job to sync the files and folders.

    Besides using a 3rd party software (like Colligo, which is not encouraged in our context), how else can this be done?

    I am pretty new to Sharepoint development, so any advise is appreciated.

    Thanks

    Tuesday, April 06, 2010 2:24 AM

Answers

All replies

  • Hi,

    You could write a batch file to copy from the document libraries UNC path...

    • Go to the Document Library in question on the SharePoint site
    • Bring up the Windows Explorer View
    • Get a copy of the Address - thats the source
    • Get a copy of the target Folder
    • Copy the files using XCOPY uncpathsourcefolder totargetfolder

    (See XCopy for more information here: http://technet.microsoft.com/en-us/library/bb491035.aspx)

    If thats far too basic then you'll have to go down the object model / web service route by using Visual Studio and guess what, thats into development land - here's an example of the task that lies ahead:

    http://stackoverflow.com/questions/787610/how-do-you-copy-a-file-into-sharepoint-using-a-webservice

    Hope this helps

    Geoff

    Tuesday, April 06, 2010 8:22 AM
  • If two-way synchronize capability is required then one option is to use the out of the box functionality of SharePoint 2007 and Outlook 2007. Instructions on how to set this up can be found here: http://office.microsoft.com/en-us/outlook/HA100819571033.aspx. Using this method, users can:

    1. Download the files from the document library into their computer

    2. Work off-line on the files they have downloaded

    3. Synchronize off-line changes to the SharePoint document library when they are re-connected to the SharePoint site

    Instructions on scripting the 'connect to outlook' function can be found here: http://vspug.com/echef/2008/04/15/scripting-the-quot-connect-to-outlook-quot-function/

     

    • Marked as answer by Lu Zou-MSFT Friday, April 16, 2010 9:14 AM
    Wednesday, April 14, 2010 12:21 AM
  • Will the solutions proposed be able to work with Sharepoint List?

     

    Thanks

    Friday, April 16, 2010 2:36 AM
  • Yes. Have a look at this post for details: http://blogs.techrepublic.com.com/howdoi/?p=158
    Friday, April 16, 2010 3:38 AM
  • Great! But can the sync process be automated via a scheduler etc?
    Friday, April 16, 2010 3:43 AM
  • "You configure SharePoint list synchronization as part of Outlook 2007's Send/Receive Groups dialog box, which you'll find by selecting Tools, Send/Receive, Send/Receive Settings, Define Send/Receive Groups."

    For further details refer to this article: http://www.windowsitpro.com/article/outlook-2007/outlook-2007-and-sharepoint-synchronization-how-it-really-works.aspx

    Friday, April 16, 2010 4:43 AM
  • Hi

    Refering to your original statement:

    There is this request to synchronize the files and folders in Sharepoint directories onto the local drives of 10 client PCs (download from sharepoint to local). There will be a daily job to sync the files and folders.

    Please bear in mind that the blog on the link refers to outlook sync which is connection using specific types of list in SharePoint to Microsoft Outlook - this option is not available on document libraries. It is only available on lists that are attributed to Outlook - e.g. Calendar, Tasks, Contacts. Hence, you not going to sync document libraries and I suspect your files and folders are in such a repository. Additionally it will not help you with Custom Lists, Links, Announcements.

    This is unless of course you have decided to use Outlook completely to sync because your files and your files and folders are not in document libraries and are living in a respository that Outlook recognises (i.e. Connect to Outlook is available from Actions drop down). Additionally, this cannot be 'scheduled' since this is simply a connection between SharePoint and a client Application - neither carries the functionality for automation unless it is coded.

    Cheers

    Geoff

     

    Friday, April 16, 2010 6:23 AM
  • Hi Geoff,

    I'm not sure which link is being referred to in your post but document libraries can surely be syncd with Outlook. Have a look at this article:http://office.microsoft.com/en-us/outlook/HA100819571033.aspx

     

    Friday, April 16, 2010 6:55 AM
  • Hi there Neville,

    Haha, oh mi gosh, got too many VMs here - was looking at one of my sandboxes running Office 2003 and SP2007 and the available for connect to outlook is not in a document library - my bad, of course it does exist for Office 2007 - apologies!

    Cheers

    Geoff

    Friday, April 16, 2010 7:15 AM