0XC00000D5

STATUS_FILE_RENAMED (0xC00000D5) — Quick Fix

This error means a program tried to modify a file that got renamed mid-operation. Usually happens with antivirus or backup tools locking the file.

You're trying to modify a file and Windows throws 0xC00000D5 — annoying as hell. Let's fix it.

The culprit here is almost always another process renaming the file out from under your application. Most of the time it's real-time antivirus scanning or a backup tool that's holding the file handle stale.

Step-by-Step Fix

  1. Close all programs accessing the file. Yes, even that Explorer window you left open. Reboot if you have to — it's the nuclear option but works when you're stuck.
  2. Disable real-time antivirus temporarily. Windows Defender, third-party AV — turn it off for 5 minutes. If the error goes away, add an exclusion for the folder or file type. Don't bother disabling the entire AV permanently, just the real-time component.
  3. Check for backup/sync software. OneDrive, Google Drive, Dropbox, Veeam, Acronis — these love to rename temp files mid-write. Pause all sync and backup jobs. If the error stops, you found the culprit.
  4. Run the file operation from an elevated command prompt. Open CMD as admin and try your operation there. Sometimes permissions and handles are cleaner.
# Example: If copying the file fails, try from CMD: copy C:\path\to\file.txt D:\backup\file.txt

Why This Happens

NTFS allows multiple processes to have handles on a file. When one process renames the file, all existing handles become stale — they point to the old name. Any write operation through that stale handle triggers 0xC00000D5. It's not corruption, just a timing conflict. The OS isn't broken, your file isn't lost.

Less Common Variations

  • Network shares. If the file is on a NAS or SMB share, the remote server might rename the file (e.g., during dedup or tiering). Try copying the file locally first.
  • Developer tools. Visual Studio or IDEs running file watchers (like Webpack, Gulp, or hot reload) can trigger this. Disable automatic renames in your IDE settings.
  • Symbolic links or junction points. If the file path goes through a reparse point, the target rename can cause 0xC00000D5. Use dir /aL to check for junctions.
  • Database files (SQL Server, Exchange). These are extremely sensitive to rename operations. Never manually rename a database file while the service is running.

Prevention

  • Add folder exclusions in your antivirus for directories where you frequently modify files — your project folders, temp directories, sync folders.
  • Schedule backups during off-hours to avoid coinciding with active file edits.
  • Close file handles properly. If you're writing code, always call CloseHandle or dispose of your file streams. Leaked handles are a ticking time bomb.

One last thing — if none of this works, check the Windows System Event Log (Event Viewer → Windows Logs → System). Filter by source 'NTFS' or 'Ntfs' and look for entries around the time of the error. They'll tell you exactly which process renamed the file. That's your smoking gun.

Related Errors in Windows Errors
0XC01C000A STATUS_FLT_INTERNAL_ERROR (0XC01C000A) Fix Guide 0x80004005 COM+ Service Registration Fails on Windows Server 2019 0X800401F1 Fix CO_E_ALREADYINITIALIZED 0X800401F1 in 5 Minutes 0X00003708 0X00003708 SXS Release Activation Context Fix

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.