On this page
- An LNK file starts with the bytes 4c 00 00 00.
- A file of a few dozen bytes is cut short.
- Two readers that print different text means trust neither.
- The shortcut can load and still point to nothing.
Why Does an LNK Shortcut Not Work?
An LNK file fails for eight reasons. The file can be another kind or cut short. The header, a flag, the target list, LinkInfo or a string can be wrong. The target can be gone and the reader can be the problem.
We damaged one LNK file in 65 ways and tested five readers on Linux. Read every fix as a first step. Our LNK troubleshooting section lists all eight causes.
How to Fix a Broken LNK Shortcut
Copy the File
Copy the LNK file, write down its SHA256 hash and work on the copy.
Read the First Bytes
An LNK file starts with
4c00 0000. Another start means another kind of file.Compare the Size
The smallest public LNK file has 226 bytes. A file of a few dozen bytes is cut.
Run a Check Script
Read every part of the file and note every fault the script names.
Use a Second Reader
Read the file with exiftool and LnkParse3. When two readers print different text, trust neither.
Look for the Target
Find the target at the path the file names. A shortcut can load and still point to nothing.
Copy It Again
Copy the file again from its source and compare the hashes. Make a new shortcut if you cannot.
What Kinds of Files Carry the .lnk Ending?
Three files with the ending .lnk were not shortcuts in our tests. One was plain text, one was a ZIP archive and one was empty. All six of our checks flagged them.
The one Recycle Bin file in our public set starts with 02 00 00 00. Read the first bytes and open the file as the type it is.
Which Damage Fools the Readers?
A cut to 40 bytes stopped all four readers that we tried. A header size of 0x4d fooled exiftool, which printed other text.
A NUL character inside a string fooled all four readers. That is why a second reader and a check script matter.
- exiftool printed other text with no message on 22 of 52 damaged copies.
- lnkinfo stopped on 38 copies and also on 2 of 13 harmless ones.
What if the Target Is Gone?
An LNK file can be fine while its target is gone. Wikipedia says Distributed Link Tracking can update a shortcut when the target moves to another drive.
We did not test missing targets. Restore the target or write a new shortcut that points to the new place.
What to Send When You Ask for Help
Send these lines to a forum or a support team. They show what the file is and where the readers stopped.
File: name, size in bytes and SHA256 hash
First bytes: head -c 20 file.lnk | xxd
Type: file file.lnk
Readers: exiftool and lnkinfo output
Windows: the version
History: where the file came fromWhat We Did Not Test
We tested no repair on files from other people. A file that passes our script can still fail on Windows. Only Windows knows what it accepts.
Frequently Asked Questions
Why does my LNK shortcut not work?
Eight causes cover what we saw. The file is another kind or cut short, a part of it is wrong, the target is gone or the reader fails.
How do I check if an LNK file is real?
Read the first bytes. An LNK file starts with 4c00 0000. The file command should name it a Windows shortcut.
Why does a shortcut open nothing?
The target can be gone. A shortcut can load in a reader and still point to a file that no longer exists.
Can I repair a damaged LNK file?
We tested no repair. Copy the file again from its source or write a new shortcut.
How big is an LNK file?
The public files in our set ran from 226 to 2,741 bytes with a median of 1,306 bytes.
Why do two readers show different text?
A damaged file can fool a reader without a message. When two readers disagree, trust neither.
Which readers should I use?
We tested file, exiftool, lnkinfo, LnkParse3 and pylnk3 on Linux. Use at least two.
