sodcalculator

10 Tech How-To

Fix Error 0x80070780 in Windows 10

Guide 10-6560 · Updated · Step by step

Error 0x80070780 typically appears when Windows 10 cannot access a file or folder, often due to a corrupted file system, a blocked file path, or a conflict with cloud-synced files. The most reliable fix is to run the System File Checker and DISM tools, then clear the file attributes or move the file out of a synced folder. Below are the exact steps and additional context to resolve this error for good.

What Causes Error 0x80070780?

This error code, which translates to “The file cannot be accessed by the system,” usually occurs in these scenarios:

  • Corrupted system files – Damaged Windows components can block file operations.
  • File attributes set to hidden or system – Sometimes files get flagged incorrectly, preventing access.
  • Cloud sync conflicts – OneDrive or other sync tools may lock files, causing access failures.
  • Long file paths – Exceeding the 260-character limit can trigger this error.
  • Third-party antivirus or security software – Overzealous protection can deny access to certain files.

Understanding the root cause helps you choose the right fix. The steps below address each of these in order of likelihood.

Run System File Checker and DISM

The first thing to try is repairing the Windows system files, as corruption is the most common trigger.

  1. Open Command Prompt as administrator (right-click Start, select “Command Prompt (Admin)” or “Windows PowerShell (Admin)”).
  2. Type sfc /scannow and press Enter. Wait for the scan to complete (it may take 10–20 minutes).
  3. If SFC finds issues but cannot fix them, run DISM: type DISM /Online /Cleanup-Image /RestoreHealth and press Enter.
  4. Restart your PC and try the file operation again.

If SFC reports “Windows Resource Protection did not find any integrity violations,” move to the next step.

Clear File Attributes and Unblock the File

Sometimes a file is marked as hidden or system, or it was downloaded from the internet and is blocked.

  1. Open File Explorer and navigate to the problematic file or folder.
  2. Right-click it, select Properties.
  3. On the General tab, if there is an Unblock checkbox, check it and click Apply.
  4. Go to the Security tab, click Advanced, and ensure your user account has Full control. If not, click Change next to the owner, set it to your account, and grant full control.
  5. Open Command Prompt as administrator and run attrib -r -s -h "C:\path\to\file" to remove read-only, system, and hidden attributes.

This often fixes the error when the file is not actually corrupted but has incorrect metadata.

Move Files Out of Cloud Sync Folders

OneDrive and similar services can lock files while syncing, causing error 0x80070780. If the affected file is inside a synced folder:

  1. Copy the file to a local folder like C:\Users\YourName\Documents.
  2. Try opening or modifying the copy.
  3. If it works, the sync service is the culprit. Pause syncing temporarily (right-click the OneDrive icon in the system tray, select Pause syncing).
  4. After pausing, try the original file again.

If the error persists even after moving, the issue is likely not sync-related.

Enable Long Path Support in Windows 10

If the file path is longer than 260 characters, Windows may fail to access it. You can enable long path support via the Registry Editor:

  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem.
  3. Find LongPathsEnabled. If it doesn’t exist, right-click, select New > DWORD (32-bit) Value and name it LongPathsEnabled.
  4. Set its value to 1 and click OK.
  5. Restart your PC.

Note that this requires Windows 10 version 1607 or later, and the application you are using must also support long paths. If the error occurs in a program that doesn’t, you may need to shorten the file name or move it to a shallower folder.

Check for Third-Party Antivirus Interference

Security software can sometimes block file access, especially if it flags the file as suspicious. To test this:

  1. Temporarily disable your antivirus real-time protection (usually via its system tray icon).
  2. Try the operation that caused the error.
  3. If it works, add an exclusion for the specific file or folder in your antivirus settings.
  4. Re-enable the antivirus.

If you are using Windows Defender, you can temporarily turn off “Real-time protection” in Windows Security > Virus & threat protection > Manage settings.

Perform a Clean Boot to Isolate the Cause

If none of the above work, a background program may be interfering. A clean boot starts Windows with only essential drivers and services, helping you identify the culprit.

  1. Press Win + R, type msconfig, and press Enter.
  2. On the Services tab, check Hide all Microsoft services, then click Disable all.
  3. On the Startup tab, click Open Task Manager and disable all startup items.
  4. Close Task Manager, click OK, and restart your PC.
  5. Try the file operation again. If it works, re-enable services and startup items one by one to find the offender.

After identifying the problematic program, update or uninstall it, or contact its support.

Frequently Asked Questions

Can I fix error 0x80070780 without restarting?

Yes, some fixes like clearing attributes or moving the file do not require a restart. However, running SFC/DISM or enabling long paths will need a reboot to take full effect.

Why does this error happen only with certain files?

It usually happens with files that have unusual attributes, are in a long path, or are locked by another process (like cloud sync or antivirus). Files that are corrupted or have permission issues also trigger it.

Will this error damage my files?

No, the error itself does not damage files. It only prevents access. However, if you try to force-delete or modify a file while it’s locked, you could cause corruption. Always follow the steps above first.

Is this error related to a virus?

Not usually. It’s typically a system or permission issue. But if you suspect malware, run a full Windows Defender scan first, as some malware can lock files.

Does this error affect Windows 11?

Yes, the same error code can appear on Windows 11, and the fixes are identical. The steps for SFC, DISM, and registry edits are the same in both versions.

What if none of these fixes work?

If the error persists, the file may be on a failing hard drive. Run chkdsk /f on the drive (requires admin and a restart). If that doesn’t help, back up your data and consider a Windows repair install using the Media Creation Tool.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →