I programmed a little application called "The Disk Tool" to solve the order "problem" ... normally MP3 USB Stick's plays the music files in the order they copied ... my tool can sort the files by order them in the FAT (12, 16, 32) ... at this time only the root directory is sorted ... it works with all FAT filesystems.
It's a beta Version and in the next weeks I add the recursive functionallity. Please try it - later I want to public it as open source under gpl/gnu licence, at this time it's a "get as it is" and "use it on your own risk". With F1 you get a short description of the command line parameters. Ctrl shows a dialog (after clicking the "sort FATxx" button) with the sorted files (old order, new order) and Shift key hides the question message box before every write access. The .net framework is needed, it's a c# programm which should basically also works under mono. A good idea is to use chkdsk (fsck.vfat) before and after sorting - the original sector and the sorted is stored in the temp folder as "sectornumber - backup.bin" and "sectornumber - sorted.bin". They are used to write the sorted files and to undo ...
- I used 5 api calls only for the direct/raw access to the block device - I sort the long file names alphabetically
- no file will be moved only the directory will be written new
- for the sorting and accessing the FAT/directory I use no special windows api function
- I'am sorry but I use 3 more api calls, one to get keyboard events and two to get the existing drives ...
- there should be no problems if you have .net framework 1.01 and or 2.0x
If someone have questions or corrections please write them to me. Also for the written text, because please my english ... my mother language is german.
- you can jump directly into a file or folder with a double click (or the Return/Enter key) if the cursor is in a line with a short name entry and the file system is FAT
new version 0.6beta out
- no no recursive option
, only a not enableling checkbox ... for the future
- but you can sort every folder you jump - for this the "sort folder" button is enabled depending from location (folder / file / other), and the first sector of choosen folder will be saved in a hash table
- one more commandline option /sector: or /s: very high risk !!! no test if there's really a folder structure !
- if or if not folder structures can only be browsed (and saved in a hashtable) by navigation from the rootdirectory to the others, and only the first sector of the folder structure make the "sort folder" button enabled
!!! ALERT !!! ALERT !!! ALERT !!! ALERT !!!
Please sort only the root folder ! Never (with this version) other folders, this or next week make a new bugfixed version ...