Thursday, May 16, 2013

Symlinks on Windows

Looks like Windows (7 at least) supports symlinks... finally!!  Yay.


    C:\>mklink
    Creates a symbolic link.

    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
                    refers to.

Example


    C:\>mklink /D my-link h:\usr\htdocs
    symbolic link created for my-link <<===>> h:\usr\htdocs

    C:\>






No comments:

Post a Comment