Cmd Mklink 🔖

This command creates a junction point named `junction` in `C:\path\to\` that points to `targetdir` located in `C:\path\to\`.

Mastering the mklink Command: A Guide to Symbolic Links in Windows cmd mklink

### Notes

The order is link first, target second – unlike ln -s on Linux ( ln -s target link ). This is a common source of confusion. This command creates a junction point named `junction`

Both paths show the same file, same size, same content. Editing one edits the other. and cannot link to directories.

A hard link is an additional directory entry pointing to the same physical file data on disk. Deleting either the original or the hard link does not delete the data until all links are gone. Hard links cannot cross volumes, and cannot link to directories.