Fix: The directory name is invalid – CD/DVD drive error on Windows 10

Updated July 2024: Stop error messages and fix your computer problem with this tool. Get it now at this link
  1. Download and install the software.
  2. It will scan your computer for problems.
  3. The tool will then fix the issues that were found.

The “Directory name is invalid” error is a system problem that can prevent you from opening certain files or directories. Also, you cannot access storage devices including SD card, external hard drive, USB drive, DVD, etc.

To access your files and disk, see how to fix it below. Then you need to back up your files. This is the only way to avoid data loss in the event of an error.

The main cause of this error is corrupt, outdated, or incompatible device drivers, but it can also be caused by a damaged or faulty SATA port. So, without wasting time, let’s see how to actually fix the problem. Directory name is not a valid error in the troubleshooting guide below.

Disable / enable DVD player driver

  1. Right-click the Windows key and select Device Manager.
  2. Expand the DVD / CD-ROM.
  3. Right-click the DVD drive and select Properties.
  4. Click the Driver tab, then click Disable.
  5. If the driver is disabled, click Enable to enable it again.

Remove / reinstall DVD drive

  1. Right-click the Windows key and select Device Manager.
  2. Expand the DVD / CD-ROM.
  3. Right-click the DVD drive and select Remove.
  4. Restart your computer to reinstall the DVD drive.

Updated: July 2024

We highly recommend that you use this tool for your error. Furthermore, this tool detects and removes common computer errors, protects you from loss of files, malware, and hardware failures, and optimizes your device for maximum performance. This software will help you fix your PC problems and prevent others from happening again:

  • Step 1 : Install PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista).
  • Step 2 : Click Start Scan to find out what issues are causing PC problems.
  • Step 3 : Click on Repair All to correct all issues.


Change SATA port

If you still receive the “Directory Name Invalid” error, the SATA port may be defective or damaged. In any case, changing the SATA port to which your CD / DVD drive is connected can fix this error in many cases. To do this, you need to open your PC / laptop case. This can be very dangerous if you don’t know what you are doing. Then you can mess up your system. Therefore, professional supervision is recommended.

Run the CHKDSK command

You can also run the CHKDSK command to determine if your device is damaged and repair it to resolve the “Directory name is not valid” error in Windows 10. To do this, follow these steps:

  • Press Windows + X, search for Command Prompt (Admin) and open it.
  • In the window that opens, enter chkdsk / f / r d: and press Enter.

If the device is damaged or has other errors, this command can fix them, and you can fix this error. Please note, however, that this utility will find and mark bad sectors on the device and help Windows not to read or save data in these sectors.

Update your hard drive driver

If the above two fixes don’t work, you can update the USB driver software.

Step 1. Open the run window, enter devmgmt.msc in the search box and click OK to display the Device Manager interface.

Step 2: Expand the Universal Serial Bus Controllers section. Then you need to right-click on the controller and select the “Update Driver Software” option from the pop-up list. Then you can follow the instructions in the wizard to complete the upgrade process.

RECOMMENATION: Click here for help with Windows errors.