Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Copy files from network share to SharePoint document library program

  Asked By: Laci Herring         Date: Aug 08, 2009      Category: Sharepoint      Views: 1497
 

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.

Tagged:                    

 

4 Answers Found

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

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

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

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, 2009       

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

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

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.

 


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].