Create a symbolic link for a file:
New-Item -Path "LinkPath" -ItemType SymbolicLink -Target "TargetPath" Example:
mklink "C:\Users\YourName\Desktop\file-link.txt" "D:\RealFolder\file.txt" Create a symbolic link for a folder (directory):
Create a symbolic link for a file:
New-Item -Path "LinkPath" -ItemType SymbolicLink -Target "TargetPath" Example:
mklink "C:\Users\YourName\Desktop\file-link.txt" "D:\RealFolder\file.txt" Create a symbolic link for a folder (directory):