Functions/mklink.ps1
Function mklink { <# .SYNOPSIS Mklink calls out to the Command Prompt (cmd.exe) and creates a link .DESCRIPTION Mklink calls out to the Command Prompt (cmd.exe) and creates a link 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. .NOTES Passes all command line arguments to cmd.exe embedded command mklink .EXAMPLE mklink LINK REALFILE would return symbolic link created for link <<===>> realfile #> cmd.exe /c mklink $args } |