This is why I asked you to explain what problem you were trying to resolve... Applying the solution I gave the first time around to a different set of circumstances was likely to have unexpected consequences.
Apple's official advice on duplicates is here... HT2905 - How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls.
In the Songs view use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created. If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background and please take note of the warning to backup your library before deduping.
(If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
Before you begin I've assumed, since you've not said anything in this regard, that both duplicate copies of each track play. If not then you have a different kind of problem and need to clean the broken links using a different proceedure which we can discuss.
mac21958 wrote:
I have another question: When I was in advanced preference in Itunes should the box: copy files to itunes folder when adding to library " should this box been checked or unchecked?
This option affects what happens when you add files stored outside the media folder into the library. If enabled iTunes makes a copy of each track inside the media folder and connects to it. If you import the same folder again iTunes makes duplictes because it isn't already connected to the file you are importing. If you disable the option iTunes becomes connected to the files on the original paths. If you attempt to reimport nothing happens. Generally the option is best left enabled so that if, for example, you play a file from a memory stick, iTunes gets its own copy that will work when the memory stick is removed. The reason for putting the "temp" folder inside the iTunes Media folder in previous instructions was to make sure that no duplicates were generated. This was on the assumption that you were importing nothing but media files into an empty library. It is possible that the presence of an iTunes Library.xml file in the imported folder may be the reason for the duplication.
tt2