Consider the following scenario. You’re working in Windows XP and need to copy a large number of files from one directory to another. Unfortunately, the target directory contains many files that are also stored in the source directory. When you drag the files from the source to the target directory, Windows XP alerts you that a file exists in the target location with the same filename as one you’re trying to copy. It also asks you whether it should replace the existing file or not, as shown in Figure A.

You don’t want to replace the duplicate file and click No. Windows promptly gives you another Confirm File Replacement warning. You click No again, and are rewarded with a third file replacement warning message. See a pattern!
If you were working in Windows Vista, Windows 7, or Mac OS X, you could easily tell the operating system not to replace the duplicate file and to apply that action to all the other duplicates. Windows XP however, doesn’t give you a “No to All” or “Apply to All” option, just a “Yes to All”, which would replace all the duplicate files and isn’t the action we want.
You could repeatedly press or hold down the N key while Windows works its way through the list of files, but this requires you to sit at the machine during the copy process and can take a long time if you’re working with several hundred duplicates. You could also click the mouse for each popup, but again this takes a really long time and is likely to give you hand cramps. You could install a third-party utility or write a custom script to handle the copy process, but there is a simpler way.
So, here’s the question: How can you say “no to all” replacements when copying files in Windows XP?
About the TR Dojo Challenge Series
Each Wednesday, I publish a new question designed to test the technical skills and IT prowess of our TechRepublic members. You can submit an answer to the question by posting it within this post’s discussion thread.
I’ll accept answer submissions for one week after I post the question. At the end of the week, I’ll consider the question closed and review the answers. The member who submitted the first, best answer will be featured in a follow-up TR Dojo Challenge article, posted on Thursday the week following the question’s publication. For being featured on the site, they will also earn themselves a bit of TechRepublic swag-a coffee mug and laptop sticker.
The rules:
- Only answers submitted within one week of the initial question’s publication date will be considered for the follow-up article and swag.
- All answers must be original and must consist of more than a link or links to third-party resources.
- I will choose the correct response from the answers submitted and my decision is final.
Good Luck!