Bring back "Copy, but keep both files" option in Windows 10

Abstract: Restore the duplicate file prompt in Windows 10 by setting NoConfirmFileCopy to 0 in the registry.

Created: 2026-10-23 by

The "Copy, but keep both files" option in Windows 10 is not a standard right-click menu item but rather the result of how File Explorer handles duplicate filenames during copy operations. When you attempt to copy a file that already exists in the destination folder, Windows prompts you with choices: "Skip this file," "Don't ask again and skip," or "Keep both files." This behavior is controlled by system registry settings and can be restored or modified if it has been inadvertently changed.

Understanding the Duplicate File Prompt

When users report missing the ability to keep both files, they are usually referring to the dialog box that appears when copying data. By default, if you drag-and-drop or use copy-paste (Ctrl+C / Ctrl+V) to move a file into a folder where a file with the same name already exists, Windows pauses the operation to ask for your preference. The "Keep both files" option renames the incoming file automatically, typically appending a number like (1) to the filename (e.g., document.txt becomes document (1).txt). If this prompt does not appear, or if the option is grayed out, it often means that a previous user action selected "Don't ask me again" for this specific scenario. Alternatively, group policies or registry tweaks may have altered the default handling of file collisions. Restoring the prompt ensures you have full control over whether duplicates are overwritten, skipped, or renamed.

Restoring the Default Behavior via Registry

The most reliable way to bring back the duplicate file prompt is to check the Windows Registry. This setting is governed by a key called NoConfirmFileCopy. If this value is set to 1, Windows will automatically overwrite existing files without asking. Setting it to 0 restores the interactive prompt. Follow these steps to adjust the registry:
  1. Press Win + R to open the Run dialog.
  2. Type regedit and press Enter to launch the Registry Editor.
  3. Navigate to the following path:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
  4. If the Explorer key does not exist, you may need to create it by right-clicking on Policies, selecting New > Key, and naming it Explorer.
  5. Look for a DWORD value named NoConfirmFileCopy within the Explorer key.
  6. If it exists, double-click it and change the value data to 0.
  7. If it does not exist, right-click in the empty space, select New > DWORD (32-bit) Value, name it NoConfirmFileCopy, and set its value to 0.
  8. Close the Registry Editor and restart your computer for changes to take effect.
After restarting, try copying a file into a folder containing a file with the same name. You should now see the familiar dialog box offering the choice to keep both files.

Alternative Methods for Managing Duplicates

While restoring the registry setting fixes the immediate issue, there are other ways to manage file duplication in Windows 10. For instance, some users prefer automatic handling to save time. If you frequently encounter duplicate files and always want to keep both, you can use third-party file management tools that offer advanced renaming strategies. However, for most users, the built-in Windows behavior is sufficient. Another common scenario involves bulk copies. If you are copying multiple folders and one contains a conflict, Windows will pause at the first conflict. If you previously selected "Don't ask again and skip," all subsequent conflicts will also be skipped silently. To undo this global setting, you must reset the registry key as described above. There is no simple checkbox in the Control Panel to revert this; the registry is the primary control point. For more information on automating file movements in Windows 10, you might find our guide on Automatically Move Files/Folders in Windows 10 helpful, as it covers similar automation concepts.

Using Command Line Alternatives

If you are comfortable with command-line interfaces, the xcopy or robocopy commands offer granular control over duplicate handling. The robocopy utility, for example, allows you to specify whether to skip, copy, or overwrite files using flags like /XO (exclude older) or /XF (exclude files). While these do not provide a GUI prompt, they are excellent for scripting repetitive tasks where you want predictable outcomes without manual intervention.

Troubleshooting Persistent Issues

In rare cases, even after setting NoConfirmFileCopy to 0, the prompt may not appear. This can happen due to corrupted shell extensions or interference from third-party antivirus software that hooks into the file system. To troubleshoot this:
  • Restart Explorer: Open Task Manager, find Windows Explorer, and restart it. This refreshes the shell interface without a full reboot.
  • Check Group Policy: If you are on a corporate domain, a Group Policy Object (GPO) might be overriding your local registry settings. Contact your IT administrator to verify if NoConfirmFileCopy is enforced centrally.
  • SFC Scan: Run a System File Checker scan by opening Command Prompt as Administrator and typing sfc /scannow. This repairs any corrupted system files that might affect File Explorer behavior.
By ensuring the registry key is correctly configured and addressing potential software conflicts, you can reliably restore the "Keep both files" functionality. This small adjustment significantly improves file management efficiency, preventing accidental overwrites while giving you the flexibility to preserve duplicates when needed.

Frequently Asked Questions

Why did the "Keep both files" option disappear?

The option disappears because you likely clicked "Don't ask me again and skip" in a previous copy operation. This sets a registry flag that suppresses the prompt for all future duplicates until manually reset.

Does resetting the registry delete my files?

No, changing the NoConfirmFileCopy registry value only affects how Windows prompts you during copy operations. It does not delete, modify, or move any existing files on your hard drive.

Can I make Windows automatically keep both files without asking?

Windows does not have a native setting to auto-rename duplicates silently. You would need to use third-party software or scripts to achieve fully automated duplicate renaming without user interaction.

What happens if I set NoConfirmFileCopy to 1?

Setting the value to 1 makes Windows automatically overwrite existing files with the same name whenever you copy them. This is risky as it permanently deletes the original file in the destination folder.

How do I restore the prompt if I am on a work computer?

If you are on a domain-joined machine, your IT department may enforce settings via Group Policy. In this case, you cannot change the registry yourself; you must request an exception or assistance from your system administrator.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More