Windows can use several small files to open programs, folders, and websites. .lnk, .url, and .pif files are not interchangeable, and the extension alone cannot prove that a file is safe.
What each shortcut-like file does
| Extension | Typical purpose | Important detail |
|---|---|---|
.lnk |
Windows Shell Link to a file, folder, application, command, or network location | A binary structure can contain a target, command-line arguments, working directory, icon, and other metadata |
.url |
Internet Shortcut that opens a web address | Usually text-based; inspect the URL and the browser/profile that will handle it |
.pif |
Legacy Program Information File associated with older DOS and Windows program settings | Unexpected PIF files are uncommon on modern systems and deserve context before use |
Why icons and displayed names can mislead
A shortcut can use an icon from a different file. Windows may also hide known extensions, so a file that visually resembles a folder or document can still be a shortcut. Turn on View > Show > File name extensions in File Explorer before judging the item by its name.
The safest question is not “which icon does it show?” but “what exact destination and arguments will Windows use?”
How to inspect without launching
- Do not double-click an unexpected item.
- Enable file name extensions and note the full file name.
- For a
.lnkfile, right-click it and inspect Properties, or use the browser-based local LNK checker. - For a
.urlfile, open it only as text with a trusted text editor and inspect the destination. Do not visit an unfamiliar address just to test it. - For an unexpected
.piffile, preserve it and scan the source with Microsoft Defender rather than trying to run it.
Signals that deserve additional review
- A shortcut that looks like a folder but starts PowerShell, CMD, WScript, MSHTA, or another command interpreter.
- Arguments that are encoded, heavily obfuscated, download remote content, or launch a script from a hidden location.
- A remote path, unfamiliar domain, temporary directory, or removable-drive script you did not create.
- A target that no longer exists, especially when the shortcut appeared after an unexpected download or USB event.
Which Shortcut Remover features apply?
Shortcut Remover focuses on Windows Shell Link files. It explains the target and command behavior it can recover, supports quarantine, and helps repair visibility changes associated with USB shortcut incidents. It does not claim that every .url or .pif file is comprehensively analyzed.
Frequently asked questions
Can renaming a .lnk file to .txt make it safe?
Renaming prevents normal shortcut handling in some contexts, but it does not analyze or clean the content. Preserve evidence and inspect the original file through a non-executing workflow.
Is a .url file safe because it only opens a browser?
No. The destination can still lead to phishing, unwanted downloads, or another harmful site. Verify the full address first.
Why does a shortcut have a folder icon?
Shell Links can reference a separate icon. A folder icon is presentation, not proof that the item is a real directory.
