Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix "Unexpected Error Copying File" in Windows

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If Windows says an unexpected error is keeping you from copying files, the fastest fix is usually to restart your PC, then try the copy again. If that fails, clear the clipboard, run the disk check, or copy to a different folder. Below are the exact steps to resolve it.

What You'll Need

  • Administrator access to your Windows PC
  • The source and destination folders or drives
  • Optional: an external drive or USB stick for testing

Step-by-Step

  1. Restart your computer. This clears temporary glitches and frees locked files. Save your work, then restart. After it boots, try copying the file again.
  2. Clear the clipboard. Sometimes a corrupted clipboard item causes the error. Open any text box (like Notepad), press Ctrl+C to copy a small piece of text, then try copying your file again.
  3. Check the file path length. Windows has a 260-character limit for file paths. Right-click the file, select Properties, and look at the Location field. If the full path is near 260 characters, move the file to a shorter path (e.g., C:\Temp) and try again.
  4. Run a disk check on the source and destination drives. Open File Explorer, right-click the drive (e.g., C:), select Properties > Tools > Check under Error checking. Follow the prompts. This scans for file system errors that can block copying.
  5. Check for read-only or hidden attributes. Right-click the file, select Properties, and under the General tab, uncheck Read-only if it's checked. Also click Advanced and uncheck Compress contents and Encrypt contents if they are enabled, then click OK.
  6. Copy to a different location. Try copying the file to your Desktop or another folder. If that works, the problem is with the original destination (permissions, disk space, or a locked folder).
  7. Check disk space on the destination. Right-click the destination drive in File Explorer and select Properties. Ensure there's enough free space—at least twice the file size.
  8. Run Windows Update. Open Settings > Update & Security > Windows Update and click Check for updates. Install any pending updates, then restart and try again.
  9. Use Command Prompt to copy (if the error persists). Press Win+R, type cmd, and press Enter. Use the command: copy "C:\source\file.txt" "D:\destination\" (adjust paths). This sometimes bypasses Explorer's issues.
  10. If the file is on a network drive or cloud folder, try copying it locally first. Download or move the file to your local disk, then copy it again.

Common Mistakes

  • Skipping the restart. Many copy errors are temporary and a restart clears them. Trying other steps first wastes time.
  • Ignoring the destination drive's free space. If the drive is full, the copy fails with a generic error.
  • Copying files that are currently in use. If the file is open in another program (like a Word document or a video player), close it first.
  • Assuming the error is always a virus. It's rarely malware; it's usually a file system or permission issue.

Tips

  • Use the Robocopy command for large or many files. Open Command Prompt as administrator and type: robocopy "C:\source" "D:\dest" /E. This is more robust than Explorer's copy.
  • Disable third-party antivirus temporarily. Some security software can interfere with file copies. If you have one, pause it for a few minutes and test.
  • Check if the file is corrupted. Try copying a different file from the same folder. If that works, the issue is specific to that file—try re-downloading or recreating it.
  • Keep your system updated. Windows updates often include fixes for file copy bugs.

Troubleshooting

If the error still appears after trying the steps above:

  • Run the System File Checker. Open Command Prompt as administrator and type sfc /scannow. This repairs corrupted system files that might affect copying.
  • Check the drive for bad sectors. In Command Prompt (admin), type chkdsk C: /f (replace C: with the drive letter). You may need to restart. This can take a while.
  • Try copying in Safe Mode. Restart your PC, hold Shift while clicking Restart, then go to Troubleshoot > Advanced options > Startup Settings > Restart and press 4 for Safe Mode. If it works there, a third-party program is interfering.
  • If the file is on an external drive or USB, try a different port or cable. Faulty connections can cause read errors.
  • As a last resort, copy the file in smaller chunks. If it's a large file (e.g., a video), try copying it with a tool like TeraCopy, which handles errors better than Explorer.

Frequently Asked Questions

Why does this error happen?

It's usually due to a temporary system glitch, a locked file, insufficient permissions, a corrupted file system, or a full destination drive.

Will I lose my file if I try these fixes?

No. The steps above do not delete or modify the original file. Only a disk check might repair file system errors, but it won't remove your data.

Can I copy the file without using File Explorer?

Yes. Use the copy or robocopy command in Command Prompt. These tools often bypass Explorer's limitations.

Does this error happen on Windows 10 and Windows 11?

Yes, the error can appear on both. The steps are the same, though some menu names differ slightly (e.g., Settings > System > Storage instead of Update & Security).

What if the error says "The file is corrupted and unreadable"?

That's a different message. It usually means the file itself is damaged. Try copying it to another location, or use recovery software if the file is critical.

Is there a way to prevent this error in the future?

Keep your system updated, regularly run disk checks, and avoid filling drives to 100%. Also, close files before copying them.