New-Item -Path "link_path" -ItemType SymbolicLink -Target "target_path" For a file:
mklink /D "C:\Projects\current" "D:\Archives\project_2025"
New-Item -Path "C:\Users\YourName\Desktop\report.pdf" -ItemType SymbolicLink -Target "D:\Work\report.pdf"
New-Item -Path "C:\Web\site" -ItemType SymbolicLink -Target "D:\Projects\mywebsite"
mklink "C:\Users\YourName\Desktop\shortcut.txt" "D:\Documents\original.txt"
A symbolic link (or symlink) is a special file that "points" to another file or directory. Think of it as an advanced shortcut that works seamlessly with the operating system and most software, appearing as if the linked file or folder actually exists in that location.
How To Create Symbolic Link Windows ((better)) May 2026
New-Item -Path "link_path" -ItemType SymbolicLink -Target "target_path" For a file:
mklink /D "C:\Projects\current" "D:\Archives\project_2025" how to create symbolic link windows
New-Item -Path "C:\Users\YourName\Desktop\report.pdf" -ItemType SymbolicLink -Target "D:\Work\report.pdf" how to create symbolic link windows
New-Item -Path "C:\Web\site" -ItemType SymbolicLink -Target "D:\Projects\mywebsite" how to create symbolic link windows
mklink "C:\Users\YourName\Desktop\shortcut.txt" "D:\Documents\original.txt"
A symbolic link (or symlink) is a special file that "points" to another file or directory. Think of it as an advanced shortcut that works seamlessly with the operating system and most software, appearing as if the linked file or folder actually exists in that location.