New-Item -Path "link_path" -ItemType SymbolicLink -Target "target_path" For a file:
mklink "C:\Users\YourName\Desktop\shortcut.txt" "D:\Documents\original.txt" 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 /D "C:\Projects\current" "D:\Archives\project_2025" how to create symbolic link windows
New-Item -Path "link_path" -ItemType SymbolicLink -Target "target_path" For a file:
mklink "C:\Users\YourName\Desktop\shortcut.txt" "D:\Documents\original.txt"
New-Item -Path "C:\Web\site" -ItemType SymbolicLink -Target "D:\Projects\mywebsite"
mklink /D "C:\Projects\current" "D:\Archives\project_2025"