Deleted File Recovery

Fix 'Directory Name Is Invalid' in Word for USB Files

Chanuka GeekiyanageChanuka Geekiyanage Oct 12, 2026 868 views

Question details

The user is unable to open a Word document from a USB drive, receiving a directory name is invalid error after the file vanished and Windows prompted to format the drive.

How to Fix 'Directory Name Is Invalid' in Word After USB Files Disappear
Product
Microsoft Word
Device & OS
Windows
Scenario
Attempting to access a recently saved Word document from a corrupted or unrecognized USB drive.
Observed behavior
The Word document disappears from the USB drive. Opening it from the Recent files list triggers a directory name is invalid error, and Windows asks to format the drive.
Before you start

Do not format the USB drive or save any new files to it, as this can overwrite your lost data and permanently prevent document recovery.

Solution 1Recommended

Recover the Document from Word's AutoRecover Folder

Use Word's built-in AutoRecover feature to find a recently saved backup of your document on your local drive.

Microsoft Word frequently creates temporary backup files while you work. Even if the USB drive is inaccessible, a temporary copy might still reside safely on your computer's hard drive.

1
Locate the AutoRecover Path

Open Microsoft Word, go to the File menu, select Options, and click on the Save tab in the left pane. Find the 'AutoRecover file location' path and copy it.

2
Navigate to the Backup Folder

Press Windows Key + E to open File Explorer. Paste the copied path into the address bar at the top and press Enter.

3
Restore the File

Look for a folder containing the name of your lost document. Open the folder, double-click the .asd file to open it in Word, and immediately choose 'Save As' to save it to your local computer drive.

Recover the Document from Word's AutoRecover Folder
Save to Local Drive: Always save the recovered file to your local Documents folder rather than back to the problematic USB drive.
Free Microsoft Office alternative

Prevent File Loss with WPS Office's Built-in Cloud Backup

Tired of losing documents to corrupted USB drives? WPS Office is a free, lightweight Microsoft Office alternative that offers automatic cloud syncing, ensuring your important files are always safe and accessible across all your devices without relying on fragile external drives.

  1. 1. Download and Install: Download WPS Office for free from the official website and run the installer.
  2. 2. Open Your Documents: Launch WPS Office and open your existing Word, Excel, or PowerPoint files directly.
  3. 3. Enable Cloud Sync: Sign in to your free WPS account to enable automatic cloud backups, keeping your files safe from hardware failure.
Highly compatible with Microsoft Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) formats.Built-in WPS Cloud automatically saves and syncs your documents to prevent file loss.Free, lightweight, and incredibly easy to use with a familiar tabbed interface.Seamless file migration from Microsoft Office without formatting or data loss.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Word say the directory name is invalid?

This error usually occurs when the path to the document no longer exists or is inaccessible to the system. For a USB drive, it typically means the drive's file system has become corrupted, or the drive was pulled out improperly while data was being written.

Should I format the USB drive when Windows asks me to?

No. Formatting the drive will erase all the data currently on it, making it much harder or even impossible to recover your lost Word documents. You should always attempt data recovery and backup your files before agreeing to format any drive.

How can I prevent losing documents stored on a USB drive in the future?

It is best practice to save your active working documents directly to your computer's local hard drive or a secure cloud storage service. USB drives should only be used as temporary storage for transferring files between devices, not as a primary workspace.

Where does Word temporarily save unsaved files?

Word temporarily saves auto-recovery backups in a dedicated AutoRecover folder on your main C: drive. You can find this exact folder path by opening Word, clicking File, selecting Options, and looking under the Save tab for the AutoRecover file location.