Skip to content

Instantly share code, notes, and snippets.

@kapb14
Last active June 18, 2019 21:29
Show Gist options
  • Select an option

  • Save kapb14/3a787c4ab6c1abc5299f43ceca032c82 to your computer and use it in GitHub Desktop.

Select an option

Save kapb14/3a787c4ab6c1abc5299f43ceca032c82 to your computer and use it in GitHub Desktop.

Revisions

  1. kapb14 revised this gist Jun 18, 2019. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions mklink.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    | mklink syntax | Powershell equivalent |
    | --- | --- |
    | mklink Link Target | New-Item -ItemType SymbolicLink -Name Link -Target Target |
    | mklink /D Link Target | New-Item -ItemType SymbolicLink -Name Link -Target Target |
    | mklink /H Link Target | New-Item -ItemType HardLink -Name Link -Target Target |
    | mklink /J Link Target | New-Item -ItemType Junction -Name Link -Target Target |
    | `mklink Link Target` | `New-Item -ItemType SymbolicLink -Name Link -Target Target` |
    | `mklink /D Link Target` | `New-Item -ItemType SymbolicLink -Name Link -Target Target` |
    | `mklink /H Link Target` | `New-Item -ItemType HardLink -Name Link -Target Target` |
    | `mklink /J Link Target` | `New-Item -ItemType Junction -Name Link -Target Target` |

    - [mklink reference](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/mklink)
    - [Powershell symlink reference](https://docs.microsoft.com/en-us/powershell/wmf/5.0/feedback_symbolic)
  2. kapb14 created this gist Jun 18, 2019.
    9 changes: 9 additions & 0 deletions mklink.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    | mklink syntax | Powershell equivalent |
    | --- | --- |
    | mklink Link Target | New-Item -ItemType SymbolicLink -Name Link -Target Target |
    | mklink /D Link Target | New-Item -ItemType SymbolicLink -Name Link -Target Target |
    | mklink /H Link Target | New-Item -ItemType HardLink -Name Link -Target Target |
    | mklink /J Link Target | New-Item -ItemType Junction -Name Link -Target Target |

    - [mklink reference](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/mklink)
    - [Powershell symlink reference](https://docs.microsoft.com/en-us/powershell/wmf/5.0/feedback_symbolic)