Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andreberg/42cc326194c92af285cbd52f3794c215 to your computer and use it in GitHub Desktop.
Save andreberg/42cc326194c92af285cbd52f3794c215 to your computer and use it in GitHub Desktop.
[Creating hard and soft links using PowerShell] #weakshell #powershell #console #terminal #command
@SteelBlueVision
Copy link

SteelBlueVision commented May 9, 2020

/d creates a directory symbolic link
/h is a hard link
(/j is a junction)

MKLINK [[/D] | [/H] | [/J]] Link Target

    /D      Creates a directory symbolic link.  Default is a file
            symbolic link.
    /H      Creates a hard link instead of a symbolic link.
    /J      Creates a Directory Junction.
    Link    Specifies the new symbolic link name.
    Target  Specifies the path (relative or absolute) that the new link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment