Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
    
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
add comment

migrated from stackoverflow.com Oct 17 '11 at 15:23

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

1 Answer

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
add comment

Your Answer

 
discard

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.