Windows

mklink

CautionCreate links

mklink /D <link> <target>

Creates symlinks, junctions and hard links — the classic move for relocating folders to another drive.

Examples

  • mklink /J C:\data D:\dataJunction a folder to another drive

Syntax

mklink [/D|/J|/H] <link> <target>

Before you run it

Understand link-vs-target deletion first.

Related commands

  • lnCreate links
  • fsutilFilesystem utilities

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store