If you want to link C:\Users\Documents\Report.docx to a folder D:\Data , use:
mklink "C:\Users\YourName\Desktop\shortcut.txt" "D:\Documents\original.txt"
| Error | Solution | |-------|----------| | "You do not have sufficient privilege" | Run Command Prompt or PowerShell as Administrator, or enable Developer Mode. | | "The system cannot find the file specified" | Check that the target path exists and is correct. | | "Cannot create a file when that file already exists" | Remove any existing file/folder at the link destination first. | | "The device does not support symbolic links" | The target drive must be formatted as NTFS or ReFS (not FAT32/exFAT). |
Windows supports three types of links:
: New-Item -ItemType SymbolicLink -Path "C:\Path\To\Link" -Target "D:\Path\To\Target" 3. The Easy Way: Using "Link Shell Extension" (GUI)
To link an entire folder, you must use the /D switch. If you want to link the folder C:\Source to D:\Destination :
If you want to link C:\Users\Documents\Report.docx to a folder D:\Data , use:
mklink "C:\Users\YourName\Desktop\shortcut.txt" "D:\Documents\original.txt"
| Error | Solution | |-------|----------| | "You do not have sufficient privilege" | Run Command Prompt or PowerShell as Administrator, or enable Developer Mode. | | "The system cannot find the file specified" | Check that the target path exists and is correct. | | "Cannot create a file when that file already exists" | Remove any existing file/folder at the link destination first. | | "The device does not support symbolic links" | The target drive must be formatted as NTFS or ReFS (not FAT32/exFAT). |
Windows supports three types of links:
: New-Item -ItemType SymbolicLink -Path "C:\Path\To\Link" -Target "D:\Path\To\Target" 3. The Easy Way: Using "Link Shell Extension" (GUI)
To link an entire folder, you must use the /D switch. If you want to link the folder C:\Source to D:\Destination :