Mklink /j Example May 2026

1. What is mklink /J ? mklink is a Windows command-line tool used to create symbolic links, hard links, and directory junctions.

mklink /J "C:\My Links\Documents" "D:\User Data\Documents" ✅ in a directory: mklink /j example

rmdir C:\Users\YourName\Desktop\Projects This removes only the junction, not the target folder or its contents. del /a:J <LinkPath> But rmdir is simpler and safer. 8. Tips & Best Practices ✅ Always use absolute paths for both <Link> and <Target> to avoid confusion. mklink /j example

✅ if paths contain spaces:

<JUNCTION> Projects [D:\Data\Projects] Use Case 1: Moving large folders to another drive (e.g., game saves, app data) Goal : Move C:\Users\YourName\AppData\Local\MyGame to D:\Games\MyGame to save C: drive space. mklink /j example