rearrange files order in filesystem

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
SailorMax
Member
Member
Posts: 121
Joined: 2007-03-15, 15:11 UTC

rearrange files order in filesystem

Post by *SailorMax »

Can you add posibility rearrange files order in filesystem (when sorting = unsorted)? If it is possible.

Some low-end devices, like car-audio, play files in order as its was write on disk (without sorting). And only possible rearrange files - it is remove all files and copy all files in right order.

Looks like this function depends on filesystem. And with some restrictions, like: in FAT32 may be cut off the names of files. That's why I wrote "if it possible" :)

thank you.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for your suggestion. The easiest way to do this is to move the files to some other directory on the device, then move them back on the order you need to see them.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

BTW I think you may use Multi-Rename Tool for such operation.

Instructions:
1. Create temp folder e.g. $mrt$ in folder where you want to rearrange files and move all files to rearrange into it.
2. Enter $mrt$ folder, select all files and open Multi-Rename Tool (Ctrl+M).
3. Set [N] as name template, [E] as extension template, check flag regex in 'Search & Replace' block and specify to replace ^ with ..\\ (dot dot slash slash, exactly as I write).
4. Rearrange files in list as you wish using dragging.
5. Press Start! :)

As result, TC will move files back to source folder, but in specified order, as you need. :)

Oh, of course, 6th step is to remove temp folder $mrt$!

I tested it on FAT-16 drive (reformatted temporary drive to it) - works fine!
SailorMax
Member
Member
Posts: 121
Joined: 2007-03-15, 15:11 UTC

Post by *SailorMax »

thanks, this is solution! :)
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

Post by *leopoldus »

2MVV
check flag regex in 'Search & Replace' block and specify to replace ^ with ..\\ (dot dot slash slash, exactly as I write).
Could you please explain the meaning of this RegExp expression? I was able to detect only ^ (Line start), but not ..\\
Thanks!
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

leopoldus,
In the 'replace with' field dot means dot and '\\' means just '\'. So, we insert '..\' before each filename to move files to upper folder.
Post Reply