Directory Listing Application
I have a music folder on my media server which has over 40 gig’s of music on it and every now and then I have the need for a complete list of my music (Artist and albums).
The final straw came this week. I am going away with a few friends in January next year to Cape Town. We will be driving down from Johannesburg, and it is an extremely long trip, can take anything from 10 hours up, depending on traffic, your speed etc etc etc. One of the sections you drive through, the Karoo, is not the most visually appealing area either. If you are not driving, the Karoo makes a extremely effective replacement for counting sheep.
Everyone going on this trip are huge music people and have random and obscure albums etc etc. So instead of us taking along a massive amount of cd’s to play in the car, I thought it would be a great idea if everyone gave me the cd’s they would want in the car and I put them on my IPod for the trip. Knowing that I will be getting a lot of cd’s from everyone, I thought it would be a good idea to send out a list of all the music I have, since there is a big overlap in tastes and my collection, so I only get cd’s that I don’t have already.
So instead of spending a very long time typing out a list, or formatting a piped output from the command line, I decided I would take two hours out of my day and write an app I can use to give the structure of any directory.
The app lets you specify your root folder, and then it will generate a list of child folders. You can then select the folders you wanted included in the list (I have some music “system” folders I don’t want included in the list such as artwork or temp ripping folders). You can also select the way the list is saved. so straight list will put one folder name per line, another will indicate the hierarchy, and another for music folders will create an artist/album structure and if you specify a prefix for your disc folders when you have multiple discs per album, it will put how many discs are in the album if it finds a folder that has the prefix in the name.
Below are screen shots of the application and then the saved documents:
This is the application at startup
The application with a listing generated (General – Show Hierarchy has been used).
This is the saved file when using General – Show Hierarchy.
This is the saved file when using General – Straight List
This is the saved file when using Music.
In the last picture (using Music), the album 2 for Artist 3 had two child folders called Disc 1 and Disc 2. I told the application that any folders that have Disc in the name are disc folders so when the application came across these within the album it did a count and then appended the number at the end of the album.
So finally the disclaimer:
This is an as is download, it works on my machine. I do not guarantee that this application will work correctly on your machine, won’t kill your dog, or steal your girlfriend. I also have very little time to provide support for it. If you find a bug, post a comment here and I will get to it when or if I can. I will at some point post the source code, so you can modify it as you see fit.
All I can promise is that there is no spyware, viruses etc embedded in the code.
Prerequisites:
- Some Microsoft Operating System.
- DotNet Framework 3.5 SP1.
Download: Directory Listing zip files
No Responses to “Directory Listing Application”
RSS feed for comments on this post. TrackBack URL
Leave a Response
You must be logged in to post a comment.
