Computer

The Complete Guide to Creating Symbolic Links (aka Symlinks) on Windows

steloflute 2020. 4. 18. 21:21

https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/

 

The Complete Guide to Creating Symbolic Links (aka Symlinks) on Windows

Windows 10, 8, 7, and Vista all support symbolic links—also known as symlinks—that point to a file or folder on your system. You can create them using the Command Prompt or a third-party tool called Link Shell Extension.

www.howtogeek.com

Without any extra options, mklink creates a symbolic link to a file. The below command creates a symbolic, or “soft”, link at Link pointing to the file Target :

mklink Link Target

 

Use /D when you want to create a soft link pointing to a directory. like so:

mklink /D Link Target

 

Use /H when you want to create a hard link pointing to a file:

mklink /H Link Target

 

Use /J to create a hard link pointing to a directory, also known as a directory junction:

mklink /J Link Target