Cmd — Mklink
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.
robocopy C:\Source D:\Dest /E /SL If you want a link that works even if the entire folder is moved, create a relative path target. Example from inside C:\Projects\MyApp : cmd mklink
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 : It is the modern successor to the older
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. Windows supports three main types of links via