Fix 'Directory Name Is Invalid' in Word for USB Files
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.

- 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.
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.
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.
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.
Press Windows Key + E to open File Explorer. Paste the copied path into the address bar at the top and press Enter.
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.

Restore from Previous Versions or Cloud Backups
Check if Windows or OneDrive automatically created a backup of your file before the USB corruption occurred.
Use Professional Data-Recovery Software
If the file system is completely damaged and Windows continually asks to format the drive, use recovery software to extract the lost files.
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. Download and Install: Download WPS Office for free from the official website and run the installer.
- 2. Open Your Documents: Launch WPS Office and open your existing Word, Excel, or PowerPoint files directly.
- 3. Enable Cloud Sync: Sign in to your free WPS account to enable automatic cloud backups, keeping your files safe from hardware failure.

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.




