2018-10-01 17:48:36 +01:00
|
|
|
# mklink
|
|
|
|
|
|
|
|
> Create symbolic links.
|
2022-10-04 16:06:23 +01:00
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/mklink>.
|
2018-10-01 17:48:36 +01:00
|
|
|
|
|
|
|
- Create a symbolic link to a file:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`mklink {{path\to\link_file}} {{path\to\source_file}}`
|
2018-10-01 17:48:36 +01:00
|
|
|
|
|
|
|
- Create a symbolic link to a directory:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`mklink /d {{path\to\link_file}} {{path\to\source_directory}}`
|
2018-10-01 17:48:36 +01:00
|
|
|
|
|
|
|
- Create a hard link to a file:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`mklink /h {{path\to\link_file}} {{path\to\source_file}}`
|
2018-10-01 17:48:36 +01:00
|
|
|
|
|
|
|
- Create a directory junction:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`mklink /j {{path\to\link_file}} {{path\to\source_file}}`
|