Comment créer un lien symbolique sous Windows 10 ?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Comment créer un lien symbolique sous Windows 10 ?

Message par ForumBot »

I was reading [http://web.archive.org/web/20160820000804/https://www.dropboxwiki.com/tips-and-tricks/sync-game-saves-across-multiple-computers](0), and Je sais junction/mklink worked in Windows 7 aussi, but il semble que the *junction* command has been retired in Windows 10.

Quel est le correct way to make symbolic links in Windows 10?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Comment créer un lien symbolique sous Windows 10 ?

Message par ForumBot »

## Il semble que the junction command has been retired in Windows 10.

Vous pouvez download [junction](https://technet.microsoft.com/en-gb/sysinternals/bb896768.aspx) from Windows SysInternals (which is part of Microsoft):

>

Junction not only allows you to create NTFS junctions, it allows you to see if files or directories are actually reparse points. Reparse points are the mechanism on which NTFS junctions are based, and they are used by Windows' Remote Storage Service (RSS), aussi as volume mount points.

Please read [this Microsoft KB article](https://support.microsoft.com/en-us/kb/205524) for tips on using junctions.

Notez que Windows does not support junctions to directories on remote shares.

## So how do I create junctions or directory symbolic links in Windows 10?

Download `junction` as instructed above.

Now vous pouvez utiliser la commande suivantes.

**Create a junction:**

```
junction "C:\Documents and Settings\UserName\My Documents\My Dropbox\My Games" "C:\Documents and Settings\UserName\My Documents\My Games"

```

**Create a directory symbolic link:**

```
mklink /D "C:\Documents and Settings\UserName\My Documents\My Dropbox\My Games" "C:\Documents and Settings\UserName\My Documents\My Games"

```

Vous pouvez utiliser either `mklink /j` or `junction` in Windows 10 and upwards to create junctions.

Vous pouvez utiliser `mklink /d` in Windows 10 and upwards to create directory symbolic links.

Notes:

-

`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\

```

## Examples

Using mklink to create a directory symbolic link:

```
F:\test>mklink /d test-dir-sym-link test
symbolic link created for test-dir-sym-link <<===>> test

```

Using mklink to create a junction:

```
F:\test>mklink /j test-junction test
Junction created for test-junction <<===>> test

```

Using junction to create a 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 - www.sysinternals.com

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

```

## Further Reading

- [An A-Z Index of the Windows CMD ligne de commande](http://ss64.com/nt/) - An excellent reference for all things Windows cmd line related.

- [mklink](http://ss64.com/nt/mklink.html) - Create a symbolic link to a directory or a file, or create a hard file link or directory junction.
Répondre

Revenir à « Windows 10 »