Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Copy files from network share to SharePoint document library program

  Asked By: Laci    Date: Aug 08    Category: Sharepoint    Views: 8872

Is there a way to copy files from a network share to a SharePoint
document programmatically? I would like to have the ability to
schedule this so I was thinking of using a .bat file if possible.



4 Answers Found

Answer #1    Answered By: Cole Curtis     Answered On: Aug 08

You can use DavCopy to script document  uploads to SharePoint. If you've
ever used Robocopy it's very similar. It works great.

Answer #2    Answered By: Debbie Snow     Answered On: Aug 08

I downloaded this and tried to use it but I keep getting the
following error 'The remote server returned an error: (400) Bad
Request. Do you know what would cause this?

My command code is:
c:\davcopy.exe c:\test.docx "http://ausdev1/dsi/itdept/documents"

I tested the SharePoint path by using Start Run and it worked fine.

Answer #3    Answered By: Adalberto Merrill     Answered On: Aug 08

Nope Sorry................................

Answer #4    Answered By: Lynsey Carver     Answered On: Aug 08

Try this - Go inside c:\
Then run - davcopy.exe test.docx "http://ausdev1/dsi/itdept/documents"
Also provide your username password if the server is behind a proxy.