Junctions and Symbolic Links
From a practical aspect, symbolic links and junctions are similar.
Junctions only work for targets on local volumes but work for a normal user. Symbolic links are more flexible but require elevated privileges or Developer Mode.
To create a junction:
mklink /j "TARGET" "SOURCE"
To create a symbolic link to a directory
mklink /d "TARGET" "SOURCE"
Example: wonderbird / ai-agent-workspace / scripts / create-skills-links-in-home-win.sh
Hard Links and Symbolic Links on Windows
- Superuser.com: How can I delete a symbolic link?
Also explains how to create a symbolic link andmklink /d - Microsoft: Windows Developer / Win32 API / Hard Links and Junctions
- Microsoft: Windows Developer / Win32 API / Creating Symbolic Links
- Microsoft: Windows Developer / Win32 API / CreateSymbolicLinkA function (winbase.h)