Fenux.Net - The Life of a Geek
FAT Sorter v1.0.4
Posted on 4/21/2008 4:27 pm in Coding

What is it?

A "simple" program to sort files on a FAT file system. The target scenario for it is to sort the files and folders on a USB flash drive alphabetically, so they are loaded properly on devices that read them.

But why?

I bought a cheap car stereo about a year ago that plays MP3 files from either CD or from a USB flash drive or a compact flash memory card. However, it plays them in the order that they were added to the device.

Sometimes, Windows doesn't copy the files over in the right order, or if files are added at a later date, they stay at the end. When I listen to full albums in the car, it bugs me when they play out of order.

I searched around for a utility to correct the problem, but none of them supported recursion of subfolders. So I decided to make one.

Why it is necessary

The FAT file system doesn't support sorting directory entries. However, this is the only file system for USB flash drives that is widely supported. Unless the hardware or software accessing the device (like your computer) resorts them for display, the files will show in the order they were added to the directory.

How we get around it

To get around the problem, we cheat. By making a temporary directory, moving all the files to it, and then moving them back, in the new order, we effectively resort the directory. We then repeat the process in each directory listed. Sorter does this in reverse order, but not for any reason other than it makes the progress bar more accurate, because it knows how many files are there before it starts.

Why do you say it's a "simple" program

The actual sorting process is fairly straight forward. However, it offered me an excuse to play with technologies I hadn't gotten to use yet, like WPF (Windows Presentation Framework) and threading. I've also added basic support for localization, but as I don't speak any other languages, I haven't made any translations for it. With all that in mind, the program ended up quite a bit more complicated than necessary, but it doesn't hurt anything.

What does it require?

The program requires Windows XP or later and the .NET Framework 3.5. It will allow you to download the framework when you install it, so you don't have to install it beforehand.

Where can I get it?

You can download the file directly here. It also includes (most of) the source code for the program, if you want to take a look. I've released it as open source (see the included license for details).

20759 responses to FAT Sorter v1.0.4

Page 1 of 184
jrmscbr alpxpxr
God gave men both a penis and a brain, but unfortunately not enough blood supply to run both at the same time.
Posted: Today, 12:35 by Buy Dapoxetine
kpdozwa zyzckmz
A committee is a group of people who individually can do nothing but together can decide that nothing can be done.
Posted: Today, 09:48 by Electronic cigarette testimonials
payday loans arnold mo
c <a href="http://paydaysignature.net#moqd">payday candy bar nutrition information</a> advances have also been seen to collaborator with a considerateness to look-alike bloke donations made auspices of the website. After admonition, entire lender has partnered with Starlight Children's http://paydaysignature.net#6a5t adjoining payday loans or spondulix advance.What Is A Payday Lend Or Ready Increase Loan?We commonplace come across innumerable advance types like housing accommodation, personal loan, and indoctrination loan. <a href=http://paydaysignature.net#ab6n>payday loans</a> xlk0j2yk
Posted: Today, 08:45 by AshleyMi
hgfqnkm binochw
Object-oriented programming is an exceptionally bad idea which could only have originated in California.
Posted: Yesterday, 17:12 by Extenze
mqknsdh jokpogr
If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside.
Posted: Yesterday, 13:23 by Xanax xr
vmwiijb xbxwjum
I am ready to meet my Maker. Whether my Maker is prepared for the great ordeal of meeting me is another matter.
Posted: Yesterday, 02:24 by Standard levitra prescription
gwaadzn ojsguca
Diplomacy is the art of saying 'Nice doggie!'... 'til you can find a rock.
Posted: Yesterday, 00:45 by Carisoprodol
ptibrta tsulmbm
As nightfall does not come at once, neither does oppression. In both instances, there is a twilight when everything remains unchanged. And it is in such twilight that we all must be most aware of change in the air — however slight — lest we become unwitting victims of the darkness.
Posted: Apr 21st, 15:26 by Cialis
cheap viagra pill x3i3b2a6
7 http://www.bioingenium.net cialis bon prix oxgg73k0 <a href= http://www.bioingenium.net >cialis</a> tlsch969
Posted: Apr 21st, 10:05 by MichaelPync
cduzhdo mjqittx
Pascal /n./ A programming language named after a man who would turn over in his grave if he knew about it.
Posted: Apr 21st, 08:31 by Cialis sample pack
eagoohk kdddijm
Emulate your heros, but don't carry it too far. Especially if they are dead.
Posted: Apr 21st, 04:25 by Compare electronic cigarettes
kwpjerk suaegzx
Early to rise, Early to bed, Makes a man healthy but socially dead.
Posted: Apr 20th, 18:01 by Ativan
fyatyhp dhqubnd
The secret of a good sermon is to have a good beginning and a good ending, then having the two as close together as possible.
Posted: Apr 20th, 02:44 by Metallic taste in mouth and provigil
vrhnpbb jdhrupn
Biologically speaking, if something bites you it's more likely to be female.
Posted: Apr 19th, 21:33 by Take levitra daily
cakmiir eapcxhz
Why do grandparents and grandchildren get along so well? They have the same enemy -- the mother.
Posted: Apr 19th, 10:33 by Generic Cialis
Page 1 of 184
Creative Commons License  Subscribe with Bloglines  Get Daily Wisdom!
This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License.
© 2000-2014 Jason Burgess