The copy bar gets partway through and stops with `0x80070002: The system cannot find the file specified.` The files are right there — you can see them in the folder. What the message actually means is that one item in the copy queue vanished, moved, or sits behind a path Windows cannot walk. Below is the order that finds it fastest.
Quick steps
- Note the file name shown in the 0x80070002 dialog
- Check whether that file was moved, renamed, or is a OneDrive placeholder
- Tick Do this for all current items and choose Skip
- Copy the folder with robocopy instead of drag-and-drop
- Run chkdsk on the source drive if the error returns
- Run sfc /scannow and DISM if system files are involved
Things you'll need
- The name of the file from the error dialog
- An administrator account on the PC
- The destination drive connected directly, not through a hub
- Time for chkdsk to run if the source drive is suspect
Step-by-step
Method 1 of 3: Find the File Windows Is Complaining About
Download image
Step 1: Read the Dialog Before You Dismiss It
The copy dialog names the item it could not find, either in the title bar or after you expand it. Write that name down. Everything else in this fix depends on knowing whether the missing item is one file, one folder, or everything after a certain point. If the dialog shows a path, note how deep it goes — paths near 260 characters are a red flag on their own.
Download image
Step 2: Check the Source Folder for That File
Open the source folder and look for the exact name from the dialog. A file that was renamed, moved, or deleted after the copy started still sits in the queue, and Windows stops when it reaches the ghost. If the name has a trailing space or ends with a period — `report .docx` — Explorer created a name most of Windows cannot address. Rename it to something plain and start the copy again.
Download image
Step 3: Look for OneDrive Placeholders
If the source sits inside a OneDrive folder, check the Status column. A cloud icon means the file is online-only: a placeholder you can see but Windows cannot copy. Right-click the folder, choose `Always keep on this device`, and wait for the icons to turn into solid green circles. The copy works once the bytes exist on disk.
Download image
Step 4: Measure the Path Length
Right-click the deepest folder in the failing path and count characters, or paste the path into a text editor. Over 260 characters and Explorer's copy engine gives up with 0x80070002 even though the files exist. Shorten folder names near the root, or skip Explorer entirely — robocopy in Method 2 walks long paths natively.
Download image
Step 5: Search for the File by Name
Still cannot find it? Open a terminal and search the whole drive: `where /r D:\ filename.docx`, or in PowerShell `Get-ChildItem D:\ -Recurse -Filter filename.docx -ErrorAction SilentlyContinue`. If the search finds it somewhere unexpected, the copy source you picked contains a stale shortcut or a junction pointing at the old location.
Method 2 of 3: Copy Again With Tools That Skip Past the Error
Download image
Step 6: Tell the Dialog to Skip and Continue
If the missing file is one you no longer need, tick `Do this for all current items` and choose Skip. The copy continues with everything else. When it finishes, compare the destination folder against the source — the log of what was skipped is the list of ghosts, usually files you deleted between starting the queue and the copy reaching them.
Download image
Step 7: Copy With Robocopy Instead of Drag-and-Drop
Open Terminal or Command Prompt and run `robocopy "D:\Source" "E:\Backup" /E /Z /R:2 /W:5 /XJ`. `/E` includes all subfolders, `/Z` makes each file restartable, `/R:2 /W:5` retries a locked file twice instead of aborting, and `/XJ` skips junction points so a stale link cannot trigger 0x80070002. Robocopy logs every skipped file at the end, which tells you exactly what did not make it.
Download image
Step 8: Read the Robocopy Summary
When robocopy finishes, the table at the bottom shows a Skipped column. Anything listed there is your missing item. Cross-reference it against the source folder. If the skipped path is deeper than 260 characters, you have confirmed the cause — robocopy copied it anyway, but Explorer will still refuse to touch it until you shorten the path.
Download image
Step 9: Enable Long Paths if You Need Them in Explorer
To make Explorer itself tolerate deep paths, run Registry Editor and set `LongPathsEnabled` to `1` under `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem`, then restart. Apps still have to opt in through their manifests, so this fixes Explorer and compatible tools only — which is why robocopy remains the safer route for the actual copy.
Download image
Step 10: Zip the Folder and Copy the Archive
For a folder full of small files that keeps failing at random items, right-click it, choose `Send to > Compressed (zipped) folder`, and copy the single archive instead. One file means one handle, no per-file queue, and no way for a ghost entry to stop the transfer. Unzip at the destination and compare sizes.
Method 3 of 3: Fix the Underlying Problem
Download image
Step 11: Run chkdsk on the Source Drive
If 0x80070002 keeps returning with different file names, the source drive's file table is losing entries. Open an elevated terminal and run `chkdsk D: /f /r` — replace `D:` with the source drive letter. `/f` repairs the table, `/r` scans for bad sectors. On a large drive this runs for hours and locks the volume, so schedule it, and never interrupt it once it starts.
Download image
Step 12: Repair Windows Itself With SFC and DISM
When the error also shows up in Windows Update or app installs, system files are involved. Run, in order: `sfc /scannow`, then `DISM /Online /Cleanup-Image /RestoreHealth`, then `sfc /scannow` again. SFC repairs against the local component store; DISM rebuilds that store from Windows Update when the local copy is itself damaged.
Download image
Step 13: Check Whether the Drive Letter Changed
External drives get a new letter every time the port assignment shifts. If your copy came from a shortcut or a script pointing at `E:\` and the drive now mounts as `F:\`, every queued path is a file not found. Open Disk Management, confirm the letter, and either adjust the script or right-click the volume and assign a fixed letter.
Download image
Step 14: Pause Real-Time Antivirus Scanning
A real-time scanner that quarantines a file mid-queue produces exactly this error: the file existed when the copy started and does not exist three seconds later. In Windows Security, go to `Virus & threat protection > Manage settings` and switch Real-time protection off for the duration of the copy. Turn it back on when the transfer finishes.
Download image
Step 15: Restart Explorer and Reconnect the Drives
Explorer caches folder contents, and a stale cache queues files that are already gone. Press `Ctrl+Shift+Esc`, find Windows Explorer, and choose Restart. Unplug the external drive, plug it into a different USB port directly on the PC — not a hub — and start the copy fresh. If the error names a different file each run, go back to chkdsk: that pattern is the drive, not Windows.
Tips
- Robocopy needs no registry change for long paths — it walks past 260 characters by design, which Explorer does not.
- Add `/LOG:C:\copy-log.txt` to the robocopy command to keep a permanent record of skipped files.
- OneDrive placeholders copy fine once they are downloaded. `Always keep on this device` is per-folder, so set it at the top of the tree.
- A copy that fails at a different file every time is a drive problem. A copy that fails at the same file every time is a name, path, or permission problem.
Warnings
- Do not interrupt chkdsk once it reaches stage 4 or 5 — stopping a sector scan mid-write can corrupt the volume it is repairing.
- Never yank an external drive while the copy bar is moving, even if it looks frozen. Safely eject first.
- Skip third-party PC repair tools that promise to fix 0x80070002 for a fee. Everything in this guide uses what ships with Windows.
- LongPathsEnabled does not protect every app. Test your backup software against a deep folder before trusting it.
Frequently asked questions
What does error 0x80070002 actually mean?
It is the Win32 code ERROR_FILE_NOT_FOUND: the system cannot find the file specified. During a copy, it means one queued item no longer exists at the path Windows recorded — because it was moved, renamed, deleted, sits behind a OneDrive placeholder, or is buried past the 260-character path limit.
If I choose Skip, do I lose data?
Only the items the dialog could not find, and those were already gone from the source — Windows cannot copy a file that is not there. Everything else copies normally. Check the destination afterwards and copy anything missing by hand.
Why does this keep happening with my OneDrive folder?
Files On-Demand stores placeholders that look like files but have no bytes on disk. The copy engine cannot read a placeholder. Mark the folder as Always keep on this device and wait for the download before copying.
Can a bad USB cable really cause a file-not-found error?
Indirectly, yes. A flaking connection drops the drive mid-copy, and every remaining queued path instantly points at a disk that is no longer mounted — which Windows reports as file not found. Direct port, good cable, and the error usually disappears.
References
- Microsoft Learn — System Error Codes 0–499 (0x80070002, ERROR_FILE_NOT_FOUND). https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-
- Microsoft Learn — robocopy command reference. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy
- Microsoft Learn — chkdsk command reference. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/chkdsk
- Microsoft Support — Use System File Checker to repair missing or corrupted system files. https://support.microsoft.com/en-us/windows/using-system-file-checker-in-windows-365e0031-36b1-6031-f804-8fd86e0ef4ca
- Microsoft Learn — Repair a Windows image with DISM. https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/repair-a-windows-image
- Microsoft Support — Files On-Demand in OneDrive. https://support.microsoft.com/en-us/office/save-disk-space-with-onedrive-files-on-demand-0e6860d3-d9f3-4971-b321-7092438fb38e
Every guide is reviewed against its sources. See our editorial policy.
Reader comments
0 so farFinished this guide? Tell other readers what worked, what didn't, and what you would change.