How to Recover and Open a Notepad Text File Displaying a Shortcut Error
Question details
The user is unable to open a text file from the desktop because it triggers an invalid shortcut error, and needs help recovering accidentally deleted or misplaced files.

- Product
- Notepad / OneDrive
- Device & OS
- not provided
- Scenario
- Attempting to open a text file created on the desktop or trying to recover an important document that was accidentally deleted.
- Observed behavior
- The file fails to open and displays an invalid shortcut error. A related important file has disappeared or been deleted.
Ensure you do not empty your system's Recycle Bin or run any disk cleanup utilities before attempting to recover your text files.
Verify File Properties and Search for the Original Document
Determine if the file on your desktop is a broken shortcut (.lnk) rather than the actual text document (.txt), and search your system for the original file.
Often, files saved directly to a synced desktop may appear as shortcuts if they were created on another computer. When the original file is moved or deleted, the shortcut becomes invalid.
Right-click the problematic file on your desktop and select 'Properties' from the context menu to check if the file type is a shortcut (.lnk) or a text file (.txt).
If it is a shortcut, navigate to the 'Shortcut' tab in the Properties window and review the 'Target' field to see the original folder path where the file was stored.
Open File Explorer and use the top-right search bar to look up the exact name of the file (e.g., 'new text document.txt') to see if it was accidentally moved to another folder.

Recover the File from the Recycle Bin or OneDrive
Restore accidentally deleted files from your local Recycle Bin or cloud storage trash if the desktop file was synchronized.
Enhance Document Safety and Syncing with WPS Office
While recovering missing Windows text files, consider upgrading your document management with WPS Office. It is a free, lightweight suite that seamlessly handles text documents and offers reliable built-in cloud synchronization, preventing broken shortcuts and lost work.
- 1. Download the software: Visit the official WPS Office website and download the free installation package.
- 2. Install and launch: Run the installer and follow the on-screen prompts to set up WPS Office on your computer.
- 3. Open and sync documents: Use WPS Writer to open your text documents and enable WPS Cloud to keep your files safely synced across all your devices.

Frequently Asked Questions
Why is my Notepad text file showing an invalid shortcut error?
This happens when the icon on your desktop is a shortcut (.lnk) pointing to a file that has been moved, renamed, deleted, or unsynced by a cloud storage service like OneDrive, rather than being the actual text file itself.
Can I recover a Notepad file deleted from a synced desktop?
Yes. If your desktop was synced with OneDrive and a file was deleted on another connected device, you can usually recover it by logging into OneDrive online and restoring it from the cloud Recycle Bin.
How do I show file extensions to confirm if my file is a text document or a shortcut?
Open File Explorer, go to the 'View' tab at the top of the window, and check the box labeled 'File name extensions'. This will reveal whether your desktop file ends in .txt (a document) or .lnk (a shortcut).




