> How to > Data Recovery > How to Fix The Directory Name Is Invalid in Windows 10

How to Fix The Directory Name Is Invalid in Windows 10

Updated on Oct 17, 2018 by Abby Haines to Data Recovery

Summary

Get 'the directory name is invalid' error in Windows 10? This page tells you how to get the problem fixed and regain access to your data on USB flash drive, external hard drive or SD card.

Many users who did a Windows 10 upgrade reported that they have encountered 'the directory name is invalid' error while plugging their USB flash drive, external hard drive or SD card into PC. 

The Directory Name Is Invalid Error in Windows 10

Being caught by this problem, they will not be allowed to open the device and access your data there. Here, you can get help no matter you want to recover data in Windows 10 or get the problem fixed with next two parts:

Notice: To protect data security on your USB flash drive or other storage devices, do remember to follow Part 2 for a data recovery assistance when you've removed the directly name invalid error from your Windows PC.

Part 1. Fix the Directory Name Is Invalid Error in Windows 10

Method 1 - Change USB Port

When it reports 'the directory name is invalid' error in Windows 10, the first thing you can try is to re-insert or replug the external hard drive, USB or SD card via another port. Some users said changing the USB port solved the problem. 

Method 2 - Check Disk Errors

If this does not work, connect the device to another computer to check if can be opened or not. If the device can not be accessed, try to check and repair disk errors in Windows 10. Otherwise, it suggests that 'the directory name is invalid' error has nothing to do with disk corruption and you have to try other ways to get the error fixed.

Method 3 - Update Disk Driver

After ruling out the possibility that 'the directory name is invalid' error appears because of USB ports issue or disk errors, we can guess that the problem might stem from disk driver. In this case, we recommend you to try to update the disk driver and check if it helps.

1) Press "Windows + R" Key.
2) Type devmgmt.msc and press Enter to open device manager.

Fix the directory is invalid error.

3) Expand "Disk Drives".

The directory is invalid error fix.

4) Right-click on the external drive, USB or SD card driver and click on "Update Driver Software".

Fix Windows 10 with the directory is invalid error.

Part 2. Recover Data after Fixing "The Directory Name Is Invalid" Error in Windows 10

If 'the directory name is invalid' error still persists or any data loss happens during the fixing process, you can try EaseUS data recovery software to scan the external hard drive, USB or SD card to find and retrieve your important files.  

Step 1. Select a location to start finding data

Launch EaseUS Data Recovery Wizard, please select a location where you lose your data and start to scan, like Desktop, Libraries, hard drive, external storage devices or lost partitions.

select the device

Step 2. Scan your partition

Click the "Scan" button and the software begins to scan your partition to find as much lost data as possible.

the software will scan the drive to find all of your data

Tips for finding wanted data

  • Extra Files: find files that lost names or paths
  • Filter: a quick way to your wanted files
  • Search: e.g. file name/file extension

Step 3. Preview and recover lost files

EaseUS Data Recovery Wizard allows you to preview specific recoverable files. After the preview or file filtering, you can target the tracked files and press the "Recover" button to get everything you want back. 

recover wanted data from your devices