QB64 Phoenix Edition
fast file find with wildcards, optional date range, match # bytes, binary compare? - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10)
+---- Thread: fast file find with wildcards, optional date range, match # bytes, binary compare? (/showthread.php?tid=3300)



fast file find with wildcards, optional date range, match # bytes, binary compare? - madscijr - 12-18-2024

I have a ton (many thousands) of files that need to be organized and deduped. In the past I made due with Beyond Compare 4 and Agent Ransack (free fast desktop file search utility for Windows) but I'm going to need some fancy logic for this, and speed is important, and I'm thinking QB64PE might be a good platform. 

Has anyone used QB64PE to do any of these (preferably natively)? 
  • recursively search subfolders
  • compare filenames (matching strings with * ? wildcards)
  • retrieve & compare two files' size in bytes
  • retrieve & compare two files' modified dates
  • binary compare file contents
  • rename / move / copy / delete files
  • create folders
  • rename folders
  • retrieve & compare folder names
  • update a file's modified date to x

All those are things I'm going to need to do, but haven't done much of in the past in QB64PE, and examples would be most helpful. 

PS I have considered shelling out to Beyond Compare / Agent Ransack, but if this can be done natively in QB64PE with comparable performance, I'd prefer doing it natively in QB64PE, not only because it simplifies & reduces dependencies, but all these will come in handy for future QB64PE utilities. 

Any examples, links, info, much appreciated...


RE: fast file find with wildcards, optional date range, match # bytes, binary compare? - Pete - 12-19-2024

https://qb64phoenix.com/forum/showthread.php?tid=3204

https://qb64phoenix.com/forum/showthread.php?tid=3208

https://qb64phoenix.com/forum/showthread.php?tid=3298

You might be able to cannibalize half the things you need from these three programs.

Pete


RE: fast file find with wildcards, optional date range, match # bytes, binary compare? - madscijr - 12-19-2024

(2 hours ago)Pete Wrote: https://qb64phoenix.com/forum/showthread.php?tid=3204

https://qb64phoenix.com/forum/showthread.php?tid=3208

https://qb64phoenix.com/forum/showthread.php?tid=3298

You might be able to cannibalize half the things you need from these three programs.

Pete
Thank you, sir. I will check those out!!!  Smile