SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have Sharepoint Server 2010 Enterprise SP1, inside this normal Document Library. We have application that stores files directoly to local server c:\files\*.pdf .

Is there any code-less solution that will schedule and every 1 minute check for files on local server c:\files\*.pdf and if they exists copy and delete (move) them to sharepoint library to given URL (https://mycorpsp:987/mydoclib) ?

Thank you

share|improve this question

migrated from Oct 17 '11 at 15:23

This question came from our site for professional and enthusiast programmers.

Is it possible to configure this application to store the files in a different folder? – Marek Grzenkowicz Oct 17 '11 at 16:02
unfortunatley no :( – hkusulja Oct 17 '11 at 16:21
Then mapping a document library as a network drive is out of question. – Marek Grzenkowicz Oct 17 '11 at 17:04
up vote 2 down vote accepted

no i don't think there is a codeless solution to this.. you most likely will have to do this via custom code.

You could create an console application which checks for files in the local folder, and if they do upload it to SharePoint and then set this application as Windows Scheduled Task with an Interval of 1min.

Another option would be implementing it using the FileSystemWatcher class. It fires when specific events happen in a directory like FileAdded, FileDeleted etc. You could hook into this events and perform the upload.

Maybe it's also possible to alter the application which stores the files so, that it uses the SharePoint WebServices directly, instead of saving the files to a local directory.

Upload document to SharePoint programmatically

share|improve this answer
I have created schedule to run every minute to my .vbs script. Script uses object MSXML2.XMLHTTP.3.0 and Filesystemobject.openAsTextstream to PUT files to Sharepoint library. However this does not work for files bigger than 2KB (.pdf) for example. – hkusulja Oct 17 '11 at 16:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.