In this article, you are going lớn learn what is “the directory name is invalid error” & how to lớn fix it accordingly. Details are below.


Step 3.

Bạn đang xem: Lỗi the directory name is invalid

In the Start in box, change the value from %HOMEDRIVE%%HOMEPATH% khổng lồ a system-wide value such as %WINDIR%.

FIX 2: Disable DVD drive

When you try lớn play a DVD disc on your computer, you may encounter “the directory name is invalid in Windows 10 DVD drive”. To fix it, you can try to lớn disable DVD drive sầu.

Step 1. Press Win + X and select Device Manager from the các mục.

Step 2. Expvà DVD/CD-ROM drives, right-cliông xã your drive and select Disable device.


Step 3. Cliông xã Yes to confirm that you want khổng lồ disable the DVD drive.

Step 4. Find your DVD drive sầu and enable it.

Besides, you still can try to repair or remove Windows Essentials. You can go to lớn Start > Settings > Apps > Windows Essentials, then click the Repair or Uninstall button khổng lồ start the process.

FIX 3: Plug your device with a different USB port

When you plug the SD card, flash drive, external hard drive sầu inlớn your computer and try to lớn clean install Windows 10 or upgrade your computer from the previous version of operating system khổng lồ Windows 10, you may encounter “the directory name is invalid in SD card/USB/external hard drive”.

For this error, the simplest reason is that your insert your device with a dead USB port. Thus, if you encounter the same error with external storage devices, you can try to lớn plug your device with a different USB port first.

FIX 4: Create a new simple partition with unallocated space

This directory name error may occur when you try to access a USB drive or other external storage devices. In this case, you can consider creating a new simple partition with unallocated space. Some users report that this method works perfectly.

Step 1. Press Win + R khổng lồ summon the Run window, type diskmgmt.msc in the box and press OK to lớn open Disk Management.

Step 2. Right cliông chồng the unallocated space & select New Simple Volume.


FIX 7: The directory name is invalid in Task Scheduler

If you have sầu this issue with Task Scheduler, you may add quotes in the tệp tin path. You can try khổng lồ remove quotes in the tệp tin path và save changes. And then, see if your problem is solved.

Besides, if you have sầu a system restore point, you can restore from a system restore point. It will restore your computer to a previous working state.

Xem thêm: Hình Xăm Chữ Đẹp Ở Tay Cho Nam, Không Thể Bỏ Lỡ 07 Mẫu Hình Xăm Cánh Tay Đẹp Nhất

Before you start lớn backup files, you need to lớn prepare two things.

1. A storage device to save sầu your files and folders. You can use the external hard drive sầu, USB drive sầu, cloud drive sầu like Dropbox, Google Drive sầu, etc.

2. A backup và restore software. This is very important. A proper software can make everything simple. I recommover you free backup & restore software AOMEI Backupper. With it, you can backup files with certain tệp tin extension, backup large files, backup files to lớn the external hard drive sầu, backup files khổng lồ Google drive sầu, etc.

Start with the detailed steps.

Step 1. Download free backup and restore software – AOMEI Backupper Standard, install & launch it. And then, cliông chồng File Backup under the Backup tab.


Step 2. Click Add File or Add Folder. Here, I’ll take Add Folder as an example.


Tips: If you vày not want backup all files, you can filter via the Filter Settings. You can go to lớn it via the funnel shaped button at the right side of a folder. However, this feature is only available on the paid version, such as, AOMEI Backkupper Professional, AOMEI Backupper Server. If it’s essential, you can need lớn upgrade the backup software.


Step 3. Click lớn select a path for your computer. You can choose to lớn backup files to lớn external hard drive, USB flash drive, NAS, etc. And then, cliông chồng Start Backup to lớn start the pending operation.


Note: If you want to backup files on a regular basis, you can tick Schedule > General or Advanced in order and then select one of the settings from the tab.

Wrapping things up

No matter what storage device you use, you can fix the directory name is invalid error. One more thing,creating a tệp tin backup with AOMEI Backkupper is very important to avoid data loss. With a tệp tin backup in h&, you can restore files from backup at any time.

If you have multiple computers, you can consider AOMEI Backupper Tech or TechPlus. It can help you deploy image to unlimited computers with the built-in tool AOMEI Image Deploy.