I've just published a new CodePlex project. This is a utility application to create sub folders each month in a document library. You can schedule this to run each month against a particular document library. It will create a top-level folder with a name like YYYY-MM where YYYY is the current year and MM is the month (e.g. 2008-07). The year and month are based on the current date.
The application then reads an XML file to determine what subfolder structure to create underneath the Year-Month folder. This can include any number of folders and subfolders. You can also specify custom security for a particular folder. Here is an example of the contents within the XML file
<security
account="domain\my user name" access="contribute" />
<security
account="domain\group name" access="read" />
</permissions>
<folder
name="Favourites" />
</folder>
<security
account="domain\my user name" access="design" />
</permissions>
</folder>
<folder
name="Videos" />
</folders>
I'm interested to hear if others find this useful and whether people have suggestions on how the application can be improved. The project is available at http://www.codeplex.com/WSSCreateFolders. Check out the other SharePoint related CodePlex projects – there is some fantastic stuff available here

2 comments:
Hi,
I have downloaded this program. Unfortuanetly when using the code supplied I get the following error :
Problems reading the Folder Configuration information from...
Can you advise why this is happening?
Hmm, could be a number of reasons. Try opening the configuration file in Internet Explorer to make sure that the XML is correctly formatted.
Also make sure that the filename in the command line matches the name of the file you are using.
You should find that the folder for the current month has been created in the specified document library, as this is done before trying to read the configuration file.
Can you provide the full error message that you are getting, as that may also provide clues
If you are comfortable with Visual Studio you can try debugging the application yourself.
Regards
Ivan
Post a Comment