Mastering Symbolic Links in Windows: The Complete Guide If you’ve ever wished a file could exist in two places at once without duplicating storage space, or needed a folder to appear somewhere else without copying gigabytes of data, you need symbolic links . Often considered a "power user" feature (and a staple of Linux/macOS), symbolic links—or "symlinks"—are a hidden gem in Windows. Here’s everything you need to know to create, manage, and remove them. What Exactly Is a Symbolic Link? A symbolic link is a special type of file or folder that acts as a transparent shortcut to another file or folder. Unlike a standard Windows shortcut ( .lnk file), a symlink is invisible to applications and the operating system . When you or an app open a symbolic link:
Windows automatically redirects you to the target . The app thinks it’s accessing the original file/folder. No space is consumed by the link itself (just a few KB of metadata).
Symlinks vs. Shortcuts vs. Hard Links | Feature | Symbolic Link | Shortcut (.lnk) | Hard Link | |---------|--------------|----------------|------------| | Works with all apps | ✅ Yes | ❌ No (needs shell) | ✅ Yes | | Points to directories | ✅ Yes | ✅ Yes | ❌ No (files only) | | Works across drives | ✅ Yes | ✅ Yes | ❌ No (same drive) | | Survives target deletion | ❌ No (broken link) | ❌ No (broken) | ✅ Yes | | Uses extra disk space | ~0 KB | ~1-4 KB | 0 KB (same inode) | Why Use Symbolic Links on Windows? Real-world use cases:
Cloud Storage Management – Keep a folder inside OneDrive or Google Drive without moving it from its original location. Game Modding – Redirect game saves or config files from C:\Program Files (write-protected) to a writable folder. Version Control – Link a specific versioned folder to a generic path (e.g., C:\Dev\current → C:\Dev\project-v2.3 ). Reduce Duplicate Data – Make the same Documents\Wallpapers folder appear inside both Pictures and Projects . Legacy Path Fixes – Create a symlink where an old app expects D:\Data to point to C:\Users\Public\Data . symbolic link windows
How to Create Symbolic Links in Windows (3 Methods) ⚠️ Important: Enable Developer Mode (Windows 10/11) Starting with Windows 10 Creators Update, standard user accounts can create symlinks without admin rights if Developer Mode is ON. Go to Settings > Update & Security > For developers → Turn ON Developer Mode . Otherwise, you must run your command prompt or terminal as Administrator .
Method 1: Using mklink (Command Prompt) mklink is the native Windows command-line tool. Syntax: mklink [[/D] | [/H] | [/J]] <Link> <Target>
| Flag | Type | Description | |------|------|-------------| | /D | Symbolic Link (Dir) | Creates a directory symlink. | | (none) | Symbolic Link (File) | Creates a file symlink (default). | | /H | Hard Link | File only, same volume. | | /J | Junction | Directory link (older, works across volumes, but less flexible than symlinks). | Examples: Mastering Symbolic Links in Windows: The Complete Guide
File symlink – Link C:\log.txt to D:\backup\log.txt : mklink C:\log.txt D:\backup\log.txt
Directory symlink – Make C:\Games\CurrentSave point to D:\Saves\Game1 : mklink /D C:\Games\CurrentSave D:\Saves\Game1
Absolute vs Relative paths – Use full paths for absolute, or relative (e.g., ..\folder\file ). Relative links move with the parent folder. What Exactly Is a Symbolic Link
Method 2: Using PowerShell (Elevated) PowerShell requires New-Item with the -ItemType SymbolicLink parameter. Examples: # File symlink New-Item -Path "C:\link.txt" -ItemType SymbolicLink -Target "D:\real.txt" Directory symlink New-Item -Path "C:\LinkedFolder" -ItemType SymbolicLink -Target "E:\ActualFolder"
To verify: Get-Item "C:\link.txt" | Select-Object LinkType, Target