Saturday, May 18, 2019

Creating Symbolic Links (SymLinks) on Windows

Example :
You want to symlinks folder "D:\Blizzard\ProgramData\Battle.net" to "C:\Programdata" then type this :

mklink /J "C:\Programdata\Battle.net" "D:\Blizzard\ProgramData\Battle.net"

Note:
- /J parameter creates a Directory Junction .If you want to symlinks one file only, remove /J.
- You can use this to replace xcopy command. It is more efficient than xcopy.
- For more information about mklink, type : mklink /? in command line
- /J parameter doesn't need administrator privilege than /D parameter.

No comments:

Post a Comment