We have powershell scripts that need to be run periodically. These scripts take actions based on records in a CSV file.
Today, these CSV files are stored in a SharePoint 2010 document library. When notified, an operator manually downloads a local copy of any updated/new csvs then processes them with a powershell script.
It seems as though I should be able to 'monitor' the SharePoint folder and automatically process files as they are updated/added.
I can do this locally, using a local folder, with a scheduled task running with proper access credentials, but am having difficulty doing the same thing when the needed data files are located in a sharepoint folder.
I'm guessing I'm missing something basic and simple, but banging my head, and googling have so far helped (except in getting a bigger headache) :(
Any thoughts/guidance/sample code would be wonderfully appreciated!