I'm currently writing C# code to automate doing a set of actions on a number of Excel files in a document library/folder tree. The actions include check out, running macros inside the Excel file, saving and checking the file back in, etc. I'd like to set the entire SharePoint document library as 'single user only' (i.e. the program) while operating to remove the possibility of outside changes during processing.
Is there any client based programmatic way to do this?