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).

20984 responses to FAT Sorter v1.0.4

Page 1 of 199
moncler autlet
Un piumino per il calore, a seconda del suo spessore. Alla parte inferiore dello spessore dello strato, con peluria soffice prestazioni sono direttamente correlata alla \nl'altro. Unità di massa di piumini soffici è meglio, <a href="http://haughtie.com/">moncler uomo</a> il suo spessore è più importante. \nPuffy è buono, dipende principalmente da velluto rosa e piume in proporzione piumino. In teoria,<a href="http://bidesia.com/">piumino moncler uomo</a> più alto verso il basso contenuto verso il basso, mentre meglio, sua \nmigliorare le prestazioni termiche. Naturalmente, tutto questo è la necessità di garantire un certo grado di riempimento giù in una precondizione. \nMa in realtà, troviamo, verso il basso contenuto in più del 90% <a href="http://closycom.org/">piumini moncler</a> dei prodotti non molto, ha senso. Basso contenuto in genere tra 75 e 85% piumino, suo più redditizi. \nPer non vive nelle regioni artiche dell'ordinari consumatori, questo isolamento è sufficiente. I prodotti attualmente sul mercato europeo e americano giù in questa gamma. \nNel processo di lavaggio piumino, perché che parte verso il basso cadute del Kashmir, mentre le prestazioni saranno interessate, ma l'impatto non è molto grande. \n<a href="http://www.parkavimosistemos.lt/imagelib/jndex1.php">http://www.parkavimosistemos.lt/imagelib/jndex1.php</a>\n<a href="http://www.zettransport.pl/include/inc">http://www.zettransport.pl/include/inc</a>
Posted: Dec 18th, 00:40 by ititzimn
payday loans
Posted: Nov 28th, 07:20 by payday loans
FAT Sorter
Thank you so much! This worked perfectly on my "Samsung DVD-E360" DVD player.
Posted: Nov 26th, 18:53 by penelope13
payday loans
Posted: Nov 25th, 19:52 by payday loans
FAT Sorter
Works perfectly on my old mp3 player. Thanks a bunch!!!\n(Radi savrseno.)
Posted: Nov 24th, 03:18 by kiko
payday loans
Posted: Nov 22nd, 16:36 by payday loans
Fat Sorter
I would like to thank you for your effort by developing this program. Unfortunately it doesn't work on the new Honda Accord ex models. As a matter of fact, Honda themselves are to blame for such an atrocious way to read a USB drive. Lets face it, it's not rocket science. I can only hope someone develops a replace system for their piece of junk.
Posted: Nov 22nd, 09:48 by Kent
Sweet blog! I found it while searching on Yahoo News.\nDo you have any tips on how to get listed \nin Yahoo News? I've been
Sweet blog! I found it while searching on Yahoo <br />\nNews. Do you have any tips on how to get listed in Yahoo News?<br />\nI've been trying for a while but I never seem to get there!<br />\nThank you
mobile loans
Posted: Nov 15th, 02:36 by mobile loans
The software works great with sorting mp3's on FAT usb's. Thank you.
Posted: Nov 14th, 16:23 by Chris
payday loans
Posted: Nov 14th, 00:56 by payday loans
quick quid
Posted: Nov 13th, 00:07 by quick quid
payday loans
Posted: Nov 8th, 02:48 by payday loans
payday loans
Posted: Nov 2nd, 04:53 by payday loans
bkwucih pkclxdf
cvgzmgfovy, http://www.opozdywqpp.com/ gpwclhfqzq
Posted: Oct 26th, 05:24 by onwpopjqsa
Page 1 of 199
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