Two folders with identical (i.e., duplicate) names

Anonymous
2010-05-14T20:19:28+00:00

When I look at my drive E in the Windows Explorer, I have two folders named \Users in the root (using Vista with the lastest updates). When I look from a cmd box, I only see one.

I think the second one was created when I used Vista's robocopy to backup my C files onto E (e.g. "robocopy c:\Users\Steve e:\Users\Steve"), but (1) I didn't think you could end up with duplicate names in the same folder and (2) how can I specify which of the two files I want to copy files to?

Windows for home | Previous Windows versions | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2010-05-14T20:50:22+00:00

You can't have two folders with the same name in the same directory - something must be different (maybe an underscore at the end of one or something else).  I have no idea how or why this happened.  When you scroll through each of the folders are they identical in terms of contents (same folders, same files, you can open files from both folders,...)?  I'm not familiar with robocopy so I'm not sure if that was responsible (though it seems likely).  If  they are identical in all respects, just delete one and use the other one (or better, remame one to something else and save it elsewhere "just in case" - at least until you're sure the folder  you selected is working properly and there are no problems.  I'd give a month and then delete the other folder.

If you see only one in cmd then move some file to a different directory and then ccheck on Windows Explorer to see in which folder the change occurred (and verify it didn't occur in both).  Then you'll know which folder to use  and which to rename are indicated above.

I hope this helps.

Good luck.


Lorien - MCSE/MCSA/Network+/A+ --- If this post helps to resolve your issue, please click the "Mark as Answer" or "Helpful" button at the top of this message. By marking a post as Answered, or Helpful you help others find the answer faster.

Was this answer helpful?

3 people found this answer helpful.
0 comments No comments

57 additional answers

Sort by: Oldest
  1. Anonymous
    2010-07-28T09:22:32+00:00

    I have a similar problem, so do not be snippy.  Somehow I have two identical folder called Download in my user directory.  This happened when I moved the folder using Properties Move and then moved it back.  They are absolutely identical with the same contents in the same user (my) user directory.  They both act as library files.  They cannot be deleted witout both of them being deleted...and then all of Windows Explorer will not even launch.

    This is a horrible bug.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2010-07-28T12:30:13+00:00

    It sounds like you're using Windows 7 ("library"). My two folders had different contents (I ended up copying the contents of both folders to a third folder, and then deleting the first two). If your folder contents are identical, it sounds like they might be references (I'm not sure of the termonology) to the same physcial folder rather than two different folders.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2010-10-13T16:47:25+00:00

    I'm pretty well versed now in the concept of the Libraries and I can understand now, how, "within a Library" you can have two folders or files with the same name.

    However, like the original poster, I am seeing these duplicate folder names OUTSIDE of my libraries. This is what is highly perplexing to me. To be more specific, I have a folder on my external drive called "My Documents". I have a folder on my Windows 7 pc called "C:\Users\Bill\Documents". I want to copy the contents of the latter folder into the folder called "My Documents" on the backup drive. When I run a Robocopy, using the syntax:

    Call "C:\Program Files\Robocopy\Robocopy.exe" "C:\Users\Bill\Documents" "E:\My Documents" /MIR /R:2

    ...(which I've run a million times before in XP), rather than merging file changes with the existing My Documents folder, instead it creates a duplicate folder called My Documents on my external drive, so my EXTERNAL DRIVE looks like this:

    My Documents

    My Documents

    Why is this happening outside of the library structure? The properties should be identical. Could it be a difference in permissions, and if so, why? I need to understand why this happens outside of the Library structure.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2010-10-14T14:43:10+00:00

    I downloaded the Robocopy GUI tool and used it successfully to synch files on my backup drive rather create a duplicate folder. When I saved the selected commands I chose from the GUI to a CMD file, it spit out the following:

    robocopy "C:\Users\Bill\Documents" "E:\My Documents" /MIR /V /NP /R:10 /W:30

    My original syntax was: robocopy "C:\Users\Bill\Documents" "E:\My Documents" /MIR /R:2

    The /V switch has to do with verbose output (logging I assume). The /NP switch displays an estimated completion time message. /R:10 just increases the retry attempts from 2 to 10, and the /W:30 switch just waits 30 seconds between retries.

    None of the differences between my original script and the switches the GUI added by default seem to explain why the original copy was creating duplicate folders. I also noticed that my original Robocopy.exe was a slightly older version than the one that comes with Windows 7, but that didn't seem to matter. When I ran the above command line calling my old version of Robocopy, it synched the folders as well, rather than creating a duplicate folder. Even when I removed what appeared to be the extraneous switches using the old Robocopy.exe, it worked the way I expected. 

    The only other difference is that I used a different backup drive (same manually created folder structure though). I can test with the original drive later tonight. But all that leaves to troubleshoot is the way Windows 7 read the original external drive (permissions??? NTFS???) I don't know. I'm stumped. But at least I've made some progress.

    Bill

    Was this answer helpful?

    0 comments No comments