Fenux.Net - The Life of a Geek
FAT Sorter v1.0.4
Coding
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).

20997 responses to FAT Sorter v1.0.4

Page 1 of 200
recommended by GROM Audio
Thanks for this utility. The technical support people at GROM Audio recommended your little program. Works like a charm.\n\nQuestion - I learned way back in the DOS days how to change the time and date stamp on a file programmatically. Shouldn't this be possible (and faster than copying files)?
Posted: Jan 18th, 21:03 by Darryl
POzRC huS fyoR
<a href=http://cookingissues.com/buytramadolonline/>buy tramadol</a> 627 tramadol high - tramadol hydrochloride 50mg capsules side effects
Posted: Jan 12th, 19:08 by lhnPUJnbBi
qazNO MNg hNdB
<a href=http://cookingissues.com/buytramadolonline/>buy tramadol onlineВ cod</a> tramadol overdose do - tramadol 50mg street price
Posted: Jan 11th, 22:32 by VaqqmGyjCp
WNoMi bqE Hdhc
<a href=http://cookingissues.com/buytramadolonline/>buy tramadol online</a> order tramadol visa - order tramadol with mastercard
Posted: Jan 11th, 12:42 by eQUeoYcdzN
vAPTK DbO sMDh
<a href=http://cfcm.com/buyambien/>buy generic ambien online</a> side effects ambien sleeping pills you - generic equivalent of ambien cr
Posted: Jan 4th, 16:51 by FcEjdcitXB
XiHRf GwI DcTk
<a href=https://www.facebook.com/buyxanax>buy xanax</a> buy xanax online - much does 1mg xanax sell
Posted: Jan 4th, 00:47 by YGVrlWojZq
lPxof Ghq bjVd
<a href=https://www.facebook.com/buyxanax>buy xanax no prescription</a> xanax 1mg side effects - 2mg klonopin compared to 2 mg xanax
Posted: Jan 3rd, 12:55 by lzMZZexufH
payday loans
edjucng
Posted: Dec 31st 2014, 20:57 by payday loans
caTbG GKn mIrD
<a href=https://www.facebook.com/buyambien>buy ambien</a> ambien 10mg picture - ambien food drug administration
Posted: Dec 31st 2014, 12:35 by ePECdxgMME
payday loans
plkiwjtz
Posted: Dec 31st 2014, 07:43 by payday loans
aCKAb vrS IhxA
<a href=https://www.facebook.com/buyambien>ambien no prescription</a> generic ambien and depression - buy ambien no prescription overnight
Posted: Dec 30th 2014, 08:12 by kFfOFBUcLH
QNvpQ AKV TpLH
<a href=https://www.facebook.com/buyambien>buy ambien</a> taking 8 ambien - ambien prescription dosage
Posted: Dec 28th 2014, 03:19 by aeStfZYpoh
payday loans
ksadjylz
Posted: Dec 23rd 2014, 03:16 by payday loans
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 2014, 00:40 by ititzimn
payday loans
qrcsbg
Posted: Nov 28th 2014, 07:20 by payday loans
Page 1 of 200
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-2015 Jason Burgess