Hi, I regularly need to copy a large number of files from a source directory to a target directory—usually around 5,000 to 8,000 files. The source directory typically contains about 50,000 files.
When copying, I want to randomly select files in batches, similar to a "RandomSort" feature.
I came across some old forum posts (many thanks to the posters for their generous sharing). I really like their approach: add a new column containing random values, then sort by that column and manually select the number of files I need. I also tried downloading some of the plugins mentioned in those posts, but they’re a bit outdated—some are not compatible with the newer 64-bit version of Total Commander, and a few of the download links are broken.
Could you help me out? This could significantly speed up my workflow. (For now, I’ve written my own Python script to do this.)
Alternatively, is there a way to add a column that automatically calculates the MD5 hash of the filename? That would also help me achieve my goal.
Thanks
How to randomly select files in batches ?
Moderators: Hacker, petermad, Stefan2, white
Re: How to randomly select files in batches ?
2shazooshazoo wrote: 2025-07-01, 01:58 UTC is there a way to add a column that automatically calculates the MD5 hash of the filename? That would also help me achieve my goal.
Yes, it is possible for the file contents.
Use LotsOfHashes wdx plugin and add a custom columns set with [=lotsofhashes.MD5.Lowercase], like this:
Code: Select all
Headers [Contents]
Name
Ext
Date [=tc.writedate.Y-M-D h:m:s]
Size [=tc.size.bkMG3]
md5 [=lotsofhashes.MD5.Lowercase]
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 16
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 16