Symbolic Link On Windows ~repack~ Jun 2026
(Remember: Both paths must be on the same drive volume for Hard Links.)
The command is mklink .
| Command | Effect | | :--- | :--- | | mklink Link Target | Creates file symlink | | mklink /D Link Target | Creates directory symlink | | mklink /H Link Target | Creates hard link (not a symlink) | | mklink /J Link Target | Creates junction | symbolic link on windows
| Feature | Windows | Linux/POSIX | | :--- | :--- | :--- | | | Admin by default | Any user | | Target type enforcement | Strict (file vs. dir) | Loose (any target) | | Relative path support | Yes | Yes | | Cross-filesystem | Yes | Yes | | Hard link directories | No (junctions as workaround) | No | | Dangling link behavior | Error on access | Error on access | (Remember: Both paths must be on the same