Announcement

Collapse
No announcement yet.

Copying unique but duplicate file names to single folder

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

  • 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, 11:35 AM.

  • Seeker
    replied
    Thank you - I love Beyond Compare, so this 'miss' was really bothering me, as I do use this feature (carefully given the potential for data loss).

    Leave a comment:


  • Chris
    replied
    Seeker,

    We'll have a change in our next release (BC 3.0.5) that should improve this behavior.

    Leave a comment:


  • Seeker
    replied
    Given the time it takes to get a response in this thread, I think I know the answer here.

    You'd think that DATA LOSS would have some priority - even if just a warning screen.

    But I guess not.

    Leave a comment:


  • Seeker
    replied
    Thanks for the response.

    Given the length of time for the release (and I am sure you are busy) - is at least a warning screen here on the table, or is it pushed way back, thinking not many will care?

    Just curious.

    Leave a comment:


  • Chris
    replied
    Seeker,

    Sorry for taking so long to respond.

    A warning when filenames collide from Copy to Folder and Move To Folder is on our wish list, but we won't be able to do it for the first BC 3.0 release.

    Leave a comment:


  • Seeker
    replied
    Waited about a month. No answer.

    What's the final 'poop' on this?

    Leave a comment:


  • Seeker
    replied
    Just wondering if we will at least get a warning in this situation with the release.
    Thanks.

    Leave a comment:


  • Michael Bulgrien
    replied
    Congrats on Journeyman!

    I agree that a warning dialog on overwriting a file would be nice even if the ability to rename dup files automatically isn't implemented. More to the point, I would consider it a bug if I have my Folder Views Confirmations set to [x] Confirm replacing files during move and was not warned.

    Leave a comment:


  • Seeker
    replied
    Thanks for your input - your first post is what I have already started doing as my current need was immediate (although using Better File Rename vs. a vbScript - but I'll check what you posted out)

    I'd already accepted that BC3 is not designed to do "what I want" with multiple duplicates and have adjusted.

    So, really, MY concern has shifted to a more general user "surprise" level if they don't think it through (which we now have).

    Let's consider a situation (forget my multiple folder.jpg thingie) - a user has, say 127 doc files scattered among 19 folders (don't ask me why, I'm making this up) and they want to consolidate them. Among them are 6 files with duplicate names (3 xyy.doc, 3 yyz.doc, the other 121 are unique)

    Sure - BC3 isn't really for this, but hey - there's a Copy to Folder/Ignore Folder Structure command.

    For "Copy to Folder" - I'm not concerned - most users doing this will copy their files, then see "on the left" there are 127 files and "on the right" in one folder are 123 files - they'll go "huh" and figure it out. No loss.

    But for "MOVE to folder" - no warning - 4 files are LOST.

    I would say at minimum there should be a box that pops up and describes this situation so that users won't be caught surprised with loss of data.

    (HEY! I'm a Journeyman!)
    Last edited by Seeker; 05-Jun-2008, 02:20 PM.

    Leave a comment:


  • Michael Bulgrien
    replied
    To be more to the point:

    Windows Explorer does not rename files when you copy them from different locations into the same target location. It only renames a file when you make a copy of it (copying it to the same folder that it is already in). Since BC3 uses the Windows copy API's, it can't really be expected to do anything different.

    Should BC3 provide a custom method to rename duplicate files? Perhaps. Will it be implemented prior to the initial non-beta release? Not likely. It certainly can go on the wish list for a future enhancement. It might be something that gets implemented when a "Find duplicate files" option gets added to the product.

    Leave a comment:


  • Michael Bulgrien
    replied
    Since you put me on the spot...I guess I would handle it this way:
    • Create an empty folder.
    • Compare the empty folder with the root folder of the folder tree with the folder.jpg files
    • Set your file filter to: folder.jpg
    • Click the Expand All button in the toolbar (this should show only the folder.jpg files)
    • Press Shift+Ctrl+A to select all files
    • Copy the selected files to the other side

    At this point, you will have a new folder structure that only has the folder.jpg files. You can expand the folder tree and view it flattened if you wish. You can also write a simple vbScript to iterate through the folder structure and rename the files any way you want. See this post for starters.
    Hint: You can check oFolder.Subfolders as well as oFolder.Files

    Leave a comment:


  • Seeker
    replied
    Originally posted by Michael Bulgrien View Post
    Yes, I think "Veteran" kicks in at 200 posts.
    Well, as a veteran - what's your take on this issue? Does it seem ok to you or a problem?

    Leave a comment:


  • Michael Bulgrien
    replied
    Yes, I think "Veteran" kicks in at 200 posts.

    Leave a comment:


  • Seeker
    replied
    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....

    Leave a comment:

Working...
X