No announcement yet.

Limiting number of characters in filename compare

  • Filter
  • Time
  • Show
Clear All
new posts

  • Limiting number of characters in filename compare

    Win10Pro64; BC 4.2.10 Greetings. I need to compare two directories, but in one of them, all file names have been truncated to 32 characters. Is there a way to tell BC to limit file names compare to the first N characters? Thank you.

  • #2
    Yes, if you can place the Longer version of the name on the left, then go to the Folder Compare's Session menu -> Session Settings, Misc tab, new Alignment Override, and define a new override:
    with Regular Expression enabled.

    You can use the Folder Comapre's Swap command in the toolbar to flip the sides if the shorter version is loaded on the left. The Alignment Override rules only support the Regular Expression on the Left side, hence why the rule is sided.
    Aaron P Scooter Software


    • #3
      Thanks Aaron. I tried what you suggested, but it isn't working. I'm comparing the music library in my phone with the one in my desktop. I'll attach a screenshot showing some of the mis-matches. I also tried some variations of your suggestion, such as using $1.*, or replacing the * with mp3. No variation that I tried made any improvement. Do you have any ideas? Wendi

      Click image for larger version

Name:	mp3Compare.jpg
Views:	62
Size:	68.3 KB
ID:	82012


      • #4
        Ah, in that example, you need to also include the file extension.

        The text found in the first 32 characters (.{32}) would need to match with $1, and the full file name needs to be represented in the match, too, with the extension.
        Aaron P Scooter Software


        • #5
          That did it! Thank you so much. Wendi