Symbolic links and junctions let one folder or file appear in two places at once. To any app, a link looks like a normal folder or file, but the data lives somewhere else. That makes them handy for a common PC problem: moving a bulky folder off a full C: drive to a bigger SSD without the app that uses it noticing. Windows 11 has three types of link, created with the built-in mklink command or PowerShell, and each behaves differently. This guide explains the differences and shows how to use them safely, based on Microsoft's documentation as of 29 November 2026. It's a how-to built from Microsoft's docs.
Symbolic links, junctions and hard links: the differences
Microsoft says the NTFS file system supports three types of file link: hard links, junctions and symbolic links.
| Symbolic link | Junction | Hard link |
|---|
mklink switch | none (file) or /d (folder) | /j
| /h
|
Links to | Files or folders | Folders only | Files only |
Target | Any path, relative or absolute | Folders on local volumes of the same PC, not mapped network drives | Files on the same volume only |
Symbolic links are file system objects that point to another object, called the target. Microsoft describes them as transparent to users: they appear as normal files or folders and apps can act on them in exactly the same way. They were designed to help with migration and compatibility with UNIX systems, and Microsoft says it implemented them to work just like UNIX links. They've been available on NTFS since Windows Vista.
Junctions, also called soft links, link folders only. Microsoft says a junction can link directories on different local volumes on the same computer, so C:\dirx linked to D:\diry is allowed, but not a folder on a mapped network drive, and not individual files.
Hard links are a second name for the same file. Microsoft says hard links can't reference folders, only files, and can't reference files on a different volume. Every hard link points at the same data, so changes made through one are instantly visible through the others.
For the most common job, pointing a folder on C: at a folder on another internal drive, a junction is the simplest choice. Symbolic links are more flexible because they work for files as well as folders.
Step 1: Open a terminal with the right rights
mklink is a Command Prompt command, so run it in Command Prompt, or in a Command Prompt tab in Windows Terminal. Microsoft lists it as applying to Windows 11 and Windows 10.
Creating symbolic links is a privileged action. Microsoft's security documentation says the Create symbolic links user right belongs to the Administrators group by default and should only be given to trusted users, because symbolic links can expose security vulnerabilities in applications that aren't designed to handle them. In practice, that means running Command Prompt as administrator. On Windows 11 you can also use sudo for a single elevated command.
There's one exception. Since the Windows 10 Creators Update, Microsoft's Windows developer blog explains, an administrator can enable Developer Mode, after which any user on the PC can run mklink to create symbolic links without an elevated console. You'll find it in Settings > System > Advanced, in the For developers section (on versions before Windows 11 25H2, it's on a separate For developers page). Microsoft's own advice, though, is that there's no need to turn on Developer Mode if you use your PC for everyday things such as gaming, browsing, email or Office, so for occasional links, just use an admin prompt.
Step 2: Create the link with mklink
Microsoft gives the syntax as:
mklink [[/d] | [/h] | [/j]] <link> <target>
The link is the new name you're creating; the target is where the real data is. The order trips people up, so read it as "make this link, pointing at that target". Put paths with spaces in quotes.
File symbolic link (the default): mklink "C:\Users\You\Desktop\notes.txt" "D:\Docs\notes.txt"
Folder symbolic link: mklink /d "C:\Projects" "D:\Projects"
Junction: mklink /j "C:\Projects" "D:\Projects"
Hard link: mklink /h "C:\Data\copy.txt" "C:\Data\original.txt"
Create the link at a path that's free. If a real folder is already at that path, move it out of the way first, which is what the next section covers.
Moving a big folder to another drive with a junction
This is the most useful everyday job for links. Say an app keeps a large data folder in C:\AppData\BigApp and your C: drive is full.
Check for a built-in option first. Many apps can change their own storage location, which is safer than a link. We have guides for moving Steam games, Ollama models and ComfyUI models the supported way.
Close the app completely, including any tray icon or background service.
Copy the folder to the new drive, for example to D:\BigApp. For large folders, Robocopy is more reliable than dragging in File Explorer.
Check the copy, then rename the original rather than deleting it straight away, for example to C:\AppData\BigApp.old.
Create the junction: mklink /j "C:\AppData\BigApp" "D:\BigApp"
Open the app and check it works. Once you're happy, delete BigApp.old to free the space.
Keep the second drive connected: if the target drive is missing, the link points at nothing and the app will behave as if its data has gone. Don't do this with Windows system folders such as C:\Windows or C:\Program Files; it's a tool for app data and your own files.
Using PowerShell instead
PowerShell's New-Item cmdlet can create the same links. Microsoft lists SymbolicLink, Junction and HardLink as item types in a file system drive, for example:
New-Item -ItemType SymbolicLink -Path "C:\Projects" -Target "D:\Projects"
Microsoft notes that creating a SymbolicLink item on Windows requires elevation as administrator, except on Windows 10 build 14972 or newer with Developer Mode turned on. It also notes that relative targets for folder symbolic links work from PowerShell 7.1.
How to remove a link safely
Removing a link should remove only the link, not the data it points to. Microsoft's mklink example removes a folder link with rd and a file link with del, for example rd "C:\Projects". Use plain rd with no extra switches, and double-check the path before pressing Enter. Hard links are different again: each is an equal name for the same file, and Microsoft says you can delete them in any order, regardless of the order in which they were created.