How to Fix The Directory Name Is Invalid in Windows 10

Get 'the directory name is invalid' error in Windows 10? Here, you can get the problem fixed and regain access to your data on USB flash drive, external hard drive or SD card. Part 1 - 3 ways to fix the error. Part 2 - recover data with EaseUS Data Recovery Wizard.

Table of Contents

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

Part 1. Fix 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:

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.

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.

Step 1: Press "Windows + R" Key.

Step 2: Type devmgmt.msc and press "Enter" to open device manager.

Fix the directory is invalid error.

Step 3: Expand "Disk Drives".

The directory is invalid error fix.

Step 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 disk data recovery software to scan the external hard drive, USB or SD card to find and retrieve your important files.  

Now please watch this video tutorial to see how to recover data with EaseUS Data Recovery Wizard.

  • Step 1. Select a location to scan.
  • Step 2. Select files to recover.
  • Step 3. Recover lost data.

Was This Page Helpful?

author icon

Updated by Daisy

Daisy is the Senior editor of the writing team for EaseUS. She has been working in EaseUS for over ten years, starting from a technical writer to a team leader of the content group. As a professional author for over 10 years, she writes a lot to help people overcome their tech troubles.

Read full bio

author icon

Written by Roxanne

Roxanne is one of the main contributors to EaseUS and has created multiple posts on digital devices like PCs, Mobile phones, tablets, Mac, etc. She loves to share ideas with people of the same interest.

Read full bio

Product Reviews

TrustScore 4.7 | 323 reviews
  • EaseUS Data Recovery Wizard is a powerful system recovery software, designed to enable you to recover files you’ve deleted accidentally, potentially lost to malware or an entire hard drive partition.

    Read More
  • EaseUS Data Recovery Wizard is the best we have seen. It's far from perfect, partly because today's advanced disk technology makes data-recovery more difficult than it was with the simpler technology of the past.

    Read More
  • EaseUS Data Recovery Wizard Pro has a reputation as one of the best data recovery software programs on the market. It comes with a selection of advanced features, including partition recovery, formatted drive restoration, and corrupted file repair.

    Read More