Skip to content

Instantly share code, notes, and snippets.

@hsuh
Last active August 31, 2017 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hsuh/6f31c3932575c900f428971026244441 to your computer and use it in GitHub Desktop.
Save hsuh/6f31c3932575c900f428971026244441 to your computer and use it in GitHub Desktop.
Use /J to create a hard link pointing to a directory, also known as a directory junction:
mklink /J Link Target
e.g mklink /J C:\LinkToFolder C:\Users\Name\OriginalFolder
Use quotes "" around the links if the names have spaces
e.g. mklink /J "C:\Link To Folder" "C:\Users\Name\Original Folder"
source - https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment