Cmd Mklink -

To create a symbolic link to a file, use the following command:

Imagine you have a house (your Hard Drive). You have a room called C:\Documents . It is completely full of boxes. cmd mklink

Creates a new directory entry for an existing file, effectively giving one file two names and paths. To create a symbolic link to a file,

Open (press Win, type cmd , right-click → Run as administrator). cmd mklink

Here is an interesting breakdown of mklink , moving from the basics to "power user" scenarios that can save you gigabytes of space and fix annoying software issues.

rmdir "C:\Users\YourName\Documents" mklink /J "C:\Users\YourName\Documents" "C:\Users\YourName\OneDrive\Documents"