2018-10-01 17:48:36 +01:00
|
|
|
# mklink
|
|
|
|
|
|
|
|
> Create symbolic links.
|
2020-09-16 13:19:57 +01:00
|
|
|
> More information: <https://docs.microsoft.com/windows-server/administration/windows-commands/mklink>.
|
2018-10-01 17:48:36 +01:00
|
|
|
|
|
|
|
- Create a symbolic link to a file:
|
|
|
|
|
|
|
|
`mklink {{path/to/link}} {{path/to/source_file}}`
|
|
|
|
|
|
|
|
- Create a symbolic link to a directory:
|
|
|
|
|
|
|
|
`mklink /d {{path/to/link}} {{path/to/source_directory}}`
|
|
|
|
|
|
|
|
- Create a hard link to a file:
|
|
|
|
|
|
|
|
`mklink /h {{path/to/link}} {{path/to/source_file}}`
|
|
|
|
|
|
|
|
- Create a directory junction:
|
|
|
|
|
|
|
|
`mklink /j {{path/to/link}} {{path/to/source_file}}`
|