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


1 Answer 1


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

  • 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. Oct 17, 2011 at 16:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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