Announcement

Collapse
No announcement yet.

Rename with folder + file name

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Rename with folder + file name

    If I have Folder X (with files 1 and 2) and Folder Y (also files 1 and 2) and I flatten the folders, can I copy to a few folder AND rename the final files to combine folder + filename, e.g., X1, X2, Y1, Y2? Thanks.

  • #2
    Sorry, Beyond Compare doesn't provide a method to rename during a copy. You'll need to rename before you copy files using Beyond Compare.

    If you want to keep a copy of both files but don't need to include the foldername in the new name, you can turn on backups in Beyond Compare.

    To turn on backups in Beyond Compare 3:
    Open Tools > Options.
    Go to the Backups section.
    Check Backup files before copy.
    Select a renaming scheme for the old file, such as Backup "abc.txt" as abc.~txt.
    Chris K Scooter Software

    Comment


    • #3
      Thanks. What would be the syntax to rename 1.txt in Folder X to X-1.txt?

      Comment


      • #4
        Hello,

        The Backup tab has pre-set naming schemes; you would have to select one of these.

        If using a manual Rename command on a selection of files, you could use something like (assuming extension is 3 characters exactly):
        Regular Expression
        (.*)\.(.{3})
        to
        $1-1.$2

        Please note that BC4 does not support an UNDO command, so please test the rename with test folders first before using on your live data.
        Aaron P Scooter Software

        Comment

        Working...
        X