It is useful to create symbolic links in certain cases.
For example, to redirect a folder’s path to a different drive.
Syntax
mklink [[/d] | [/h] | [/j]] <link> <target>
Parameters
Parameter | Description |
/d | Creates a directory symbolic link. By default, this command creates a file symbolic link. |
/h | Creates a hard link instead of a symbolic link. |
/j | Creates a Directory Junction. |
<link> | Specifies the name of the symbolic link being created. |
<target> | Specifies the path (relative or absolute) that the new symbolic link refers to. |
/? | Displays help at the command prompt. |
Important
To create symbolic links, you need to run the command prompt (cmd command) as admin!
Example
Create a symbolic link for the Autodesk folder which by default at the C: drive.
- Copy the folder to your other drive (in this case S:)
- Delete the Autodesk folder from the C: drive
- Create the symlink:
mklink /d Autodesk S:\Autodesk
Another example:
You can use this for example to “change” the default download folder for the pretty new Cargo KitBash3D tool.
The kits folder is here: C:\Users\~\AppData\Roaming\kitbash3d\kits
After the smylink creation looks like this:
The actual kits folder is now here: S:\kits