A junction point, also called an NTFS junction, is a special directory in Windows that transparently redirects to another directory on a local volume. When a program opens a path that passes through a junction, the file system substitutes the target path and the program sees the target contents as if they lived at the junction location. In Windows storage & file systems, junctions are one of three link types alongside hard links and symbolic links, and they are the oldest way to link folders on NTFS.
Junctions are implemented as reparse points, metadata attached to a directory that tells the NTFS driver to interrupt normal path resolution. They are widely used by Windows itself for backward-compatible folder names, by administrators to move large folders to another drive, and by developers to share directories between projects without copying data.
How a junction point redirects a path
A junction works through the reparse point mechanism of NTFS. The junction itself is an empty directory whose reparse data carries the tag IO_REPARSE_TAG_MOUNT_POINT and an absolute target path in the internal form \??\D:\Target. When the I/O manager walks a path and reaches that directory, NTFS returns a reparse status, the object manager rebuilds the path with the target substituted, and the lookup restarts at the target.
Because the redirection happens inside the file system stack on the machine that owns the volume, junctions are always resolved locally. A user who opens a shared folder over SMB and crosses a junction on the server is redirected on the server side, which is why a junction can point only to local volumes of the same computer, never to a network share. The table below summarizes the stored properties of a junction.
| Property | Value | Consequence |
|---|---|---|
| Reparse tag | IO_REPARSE_TAG_MOUNT_POINT | Shared with volume mount points |
| Target form | Absolute path on a local volume | Breaks if the drive letter changes |
| Object type | Directory only | Cannot link a single file |
| Data stored | Target path, no file content | Takes almost no disk space |
| Attribute flag | FILE_ATTRIBUTE_REPARSE_POINT | Tools can detect and skip it |
Junction points compared with other NTFS links
Windows offers three distinct link types on NTFS, and choosing the wrong one is a frequent source of errors. A junction links directories by absolute local path, a hard link gives a single file a second name on the same volume, and a symbolic link can point to files or folders, use relative paths and even reach remote UNC targets. The comparison below shows where each one fits.
| Feature | Junction point | Symbolic link | Hard link |
|---|---|---|---|
| Links files | No | Yes | Yes |
| Links directories | Yes | Yes | No |
| Crosses volumes | Yes, local only | Yes, including network paths | No, same volume only |
| Relative target | No | Yes | Not applicable |
| Privilege to create | None beyond write access | Privilege or Developer Mode | None beyond write access |
| Created with mklink | mklink /J | mklink or mklink /D | mklink /H |
A volume mount point uses the same reparse tag as a junction but targets a volume GUID path instead of a folder, which lets an entire drive appear inside an empty NTFS directory. Disk Management creates mount points; mklink creates junctions. Both are often reported by tools as junctions, which explains some confusing listings.
Creating and inspecting junction points
The usual way to create a junction is the `mklink /J` command in Command Prompt, for example mklink /J C:\Games D:\Games, which makes C:\Games open the contents of D:\Games. PowerShell offers the equivalent New-Item -ItemType Junction. The link path must not already exist, while the target should exist, because a junction to a missing folder simply fails when opened.
| Task | Command | Note |
|---|---|---|
| Create a junction | mklink /J link target | Works without elevation |
| List junctions | dir /AL | Shows the JUNCTION label and target |
| Show reparse data | fsutil reparsepoint query path | Displays tag and stored path |
| Remove the link only | rmdir link | Target contents stay intact |
| Create in PowerShell | New-Item -ItemType Junction | Uses -Path and -Target |
Removing a junction with rmdir without the /S switch, or deleting it in a modern File Explorer, deletes only the link. The danger lies in recursive deletion tools that follow the junction, because they can erase the real target contents while the user believes only a shortcut is being removed.
Typical uses in Windows
Windows itself relies on junctions for application compatibility. Since Windows Vista, legacy paths such as C:\Documents and Settings and the old Application Data folders inside each profile are junctions to their modern locations, so programs written for Windows XP still find their files. These compatibility junctions carry a deny entry for listing contents, which prevents tools from enumerating them and descending into endless loops.
- Relocating large folders such as game libraries, caches or virtual machine images to a second drive while keeping the original path.
- Sharing a dependency folder between several build projects without duplicating gigabytes of data.
- Keeping hard-coded paths working after a data migration, when a program cannot be reconfigured.
- Presenting several data folders under one root for a backup or indexing tool.
Moving system-managed folders such as WinSxS or the whole Users directory with junctions is not supported by Microsoft and frequently breaks updates or feature upgrades. Supported alternatives include changing the location of known folders through their Location tab or using Storage Spaces.
Limitations and common mistakes
The most important limitation is that a junction stores an absolute path with a drive letter. If the target drive receives a different letter, or the disk is moved to another computer, every junction that points to it becomes a broken link. Junctions also exist only on NTFS; copying a folder to FAT32 or exFAT turns a junction into an ordinary copy of the data or drops it.
| Symptom | Cause | Remedy |
|---|---|---|
| Backup size doubles | Backup tool follows junctions | Exclude reparse points in the job |
| Endless folder recursion | Junction points to its own parent | Remove the loop and recreate the link |
| Access denied on old paths | Compatibility junction blocks listing | Use the modern folder path |
| Link opens nothing | Target drive letter changed | Recreate the junction with mklink /J |
Security tooling deserves attention as well. Because junctions can be created without administrative privileges, attackers have used them in path redirection attacks against privileged services that write to user-controlled folders. Well-written software checks for reparse points before writing to sensitive locations.
The simple explanation
A junction point is like a forwarding address for a folder. You see a folder in one place, but when you open it, Windows quietly shows you the contents of another folder somewhere else on the same computer.
Nothing is copied, so it uses almost no space. The key thing to remember is that deleting the junction removes only the signpost, not the real folder, as long as you do not use a tool that empties everything it finds inside.
How it is used in practice
A video editor works on a laptop with a 512 GB system SSD that keeps running out of space because an editing application stores its media cache in C:\Users\Editor\AppData\Roaming\Cache, a path the program does not allow changing. The cache regularly grows to about 180 GB.
The editor closes the application, moves the cache folder to a 2 TB external NVMe drive mounted as E:, and runs mklink /J to create a junction at the original path that points to E:\Cache. The application keeps writing to the path it expects, while the data lands on the large drive.
The outcome is about 180 GB freed on the system drive with no change to the application. The editor also assigns a fixed drive letter to the external disk in Disk Management, because a different letter would leave the junction pointing nowhere.