Cmd Mklink ✓
mklink "C:\Users\Me\Desktop\current_report.docx" "D:\Archives\2025\report_march.docx" Now current_report.docx on your desktop is actually D:\Archives\2025\report_march.docx . Like a symlink but for folders. Most flexible for directories.
1. What is mklink ? mklink is a Windows command-line tool used to create links to files or folders. It is the modern successor to the older linkd (directory junction) tool and offers more flexibility. cmd mklink
mklink /D "C:\MyGames" "E:\SteamLibrary\steamapps\common" Any file saved into C:\MyGames\config.ini actually goes to E:\SteamLibrary\... . Crucial difference: A hard link is an additional directory entry pointing to the same physical file data on disk. Deleting either the original or the hard link does not delete the data until all links are gone. Hard links cannot cross volumes, and cannot link to directories. mklink "C:\Users\Me\Desktop\current_report
mklink /H "C:\Users\Me\documents\important.txt" "C:\Users\Me\backup\important.txt" Both paths show the same file, same size, same content. Editing one edits the other. An older type of directory link. Works only on local drives (no network). Faster than symlinks for some operations? In practice, junctions are very similar to /D symlinks, but older apps understand them better. Use /J for drive redirection (e.g., moving C:\Users ). It is the modern successor to the older
Think of it as creating a "magical" shortcut that the operating system and applications treat as the actual file or folder . Windows supports three main types of links via mklink :