C:\WINDOWS\system32>mklink /J d:\soft\test d:\app Symlink created for d:\soft\test <<===>> d:\app
More info: mklink -h
grammar:
mklink /D shortcut actual directory
mklink /J shortcut actual directory
When the actual directory is an absolute path, there is no difference between the two, and the actual directory can be accessed through shortcuts whenever you move it.
When the actual directory is a relative path, after the actual directory is moved, the shortcut of /J can be accessed normally, but the shortcut of /D cannot be accessed