Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Apr 2008
    Posts
    24

    Default Copying unique but duplicate file names to single folder

    If this belongs in a different area, please move. Thanks.

    This may go beyond what Beyond Compare is supposed to do, but it is already so close, I just need the last step - and maybe it's "in there".

    I have files named folder.jpg scattered throughout a folder hierarchy. I want to put all of them into one folder. (And yes, the duplicate file name is the issue).

    I select all the folders, filter on *.jpg, tell Beyond Compare to ignore the folders and select all files. Then "Copy to Folder". What I end up with (and I expected this) is a copy of all the jpg files (without the folder.jpg name) and ONE folder.jpg - the last one of course.

    Given the capability of "Copy to Folder" and the obvious fact that when doing so, some files might have the same name, is there some option to keep them unique (yes, you could maintain the folder hierarchy and keep each folder.jpg in a folder of its own) but in just one folder?

    Like how Windows will save as folder.jpg, then rather than overwriting, folder(1).jpg, folder(2).jpg etc.

    (Oh, and as I continue to look - how would MOVE to folder handle this? I'm scared to try - but I'd hope that you wouldn't lose all but one folder.jpg!!!)

    Thanks for any help. Great product! I tried to purchase v3 already, but I can wait till June 30 - thanks for letting us test it. THANKS FOR UNICODE!

    Owner since BEFORE Jan 1, 2007, and willing to pay for a great product.
    Last edited by Seeker; 04-Jun-2008 at 09:35 AM.

  2. #2
    Join Date
    Apr 2008
    Posts
    24

    Default

    Oh, and I could tolerate (be thrilled with?) an option that gave a duplicate filename its foldername to keep it unique; i.e.

    FNAME1
    --- folder.jpg
    FNAME2
    --- folder.jpg

    copies to single folder as fname1-folder.jpg and fname2-folder.jpg

    or any similar mapping, if such a thing exists. But I'm not betting on it.
    Last edited by Seeker; 04-Jun-2008 at 09:36 AM.

  3. #3
    Join Date
    Apr 2008
    Posts
    24

    Default

    I just did a test bed - MOVED two identically named files from two folders into a single folder (don't maintain folder hierarchy). Yep - lost one of them!!!!

    Whereas I consider the copy folder - overwriting the files to be problematic - at least I still have them in their original location.

    But when you move them, you LOSE all but one. That's not real cool, even if intended.

    Thoughts?

  4. #4
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,893

    Default

    This is currently working as expected. To determine otherwise would add a decent amount of pre-processing to this specific scenario (Copy/Move To Folder, remove folder structure, identical names).

    The workflow you are looking to accomplish is not easily handled in BC. The issue comes in that you have to rename the files manually. To do so more easily, I would recommend a Copy To Folder (a temp folder) and preserve the folder structure. Then Flatten Folders (so it shows the list of files) and rename them manually. Then copy again, removing the folders.
    Aaron P Scooter Software

  5. #5
    Join Date
    Apr 2008
    Posts
    24

    Default

    As I initially said, I'm not real surprised this is as intended, I was just "hoping".

    I can do the renaming with something like Better File Rename, I just thought BC might do it, given there IS overwrite and I doubt it will be expected, especially if there are just 2-3 identical names in a long list of names.

    However, I am surprised you do this for "Move to Folder" without warning the user that they are about to lose (maybe many) files that happen to have the same name.
    Last edited by Seeker; 04-Jun-2008 at 01:18 PM.

  6. #6
    Join Date
    Oct 2007
    Location
    Hannover, Germany
    Posts
    356

    Default

    Hello!

    Yes, overwriting existing files while copy/move to folder should respect 'Folder Confirmation'-settings!

    Then the renaming may be selected by the user in the confirmation dialog (i. e. (1)/parent folder/CRC-String). This also may appear before the action (managing duplicate file names).

    Greetings Lutz

  7. #7
    Join Date
    Apr 2008
    Posts
    24

    Default

    I'm not sure, since your post says "expert", whether you say that confirmation DOES happen based on folder confirmation, or you are saying it SHOULD happen.

    Either way, copy/move to folder does NOT occur based on folder confirmation settings - all of mine are checked, but this overwrite on copy, and overwrite on move (which results in lost files) does NOT appear to follow the confirmation settings, but simply overwrites with no confirmation dialogs.

  8. #8
    Join Date
    Apr 2008
    Posts
    24

    Default

    Looking at file confirmations, I see two that apply for overwrites:

    Confirm overwriting new files

    Confirm replacing files during move

    I have both checked. For copy, the first might not trigger on some copies, but should for other copies.

    As for the move, it seems the second confirmation listed above would have triggered on each overwrite.

    Now, all that said - I understand if this wasn't considered - it appears "copy/move to folder" may be an add on for convenience - since the confirmations appear designed to cover files that were there before action was initiated (otherwise it would say confirm overwriting files vs confirm overwriting newer files) - whereas here, the files to be overwritten appear DURING the action.

    Even so, this overwriting of files during the action is still of concern, and I think you'll get complaints about it if you leave it alone.

    Thanks, still, for a great product.

  9. #9
    Join Date
    Oct 2007
    Location
    Pennsylvania
    Posts
    1,772

    Default

    Quote Originally Posted by Seeker View Post
    since your post says "expert"
    "expert" means he has been around long enough to make over 50 posts.
    BC v4.0.7 build 19761
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

  10. #10
    Join Date
    Apr 2008
    Posts
    24

    Default

    Quote Originally Posted by Michael Bulgrien View Post
    "expert" means he has been around long enough to make over 50 posts.

    And veteran means similar?

    Maybe that means I won't be a visitor much longer....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •