Monday, July 25, 2016

How to create a Symbolic Link on Windows 10?

What's the correct way to make symlinks in Windows 10?

You can use either mklink (cmd built-in) or junction (from Windows SysInternals, which is part of Microsoft) in Windows 10 to create junctions.


junction can also list junctions and determine if a file is a junction unlike mklink.

mklink is an internal command only available within a cmd shell.

By default Administrator privileges are required to create symbolic links.

It can also be granted to other users. The security setting "Create symbolic links" can be granted at:

Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\

Using mklink:

F:\test>mklink /j test-junction test

Junction created for test-junction <<===>> test

Using junction:

F:\test>C:\apps\NirSoft\SysinternalsSuite\junction.exe test-junction test

Junction v1.06 - Windows junction creator and reparse point viewer
Copyright (C) 2000-2010 Mark Russinovich
Sysinternals -

Created: F:\test\test-junction
Targetted at: F:\test\test


No comments: