using symbolic links on windows

mklink /d – create a directory symbolic link in Windows

Suppose you want to make the folder e:\source appear at c:\target\bridge without physically copying its contents. You can set up a symbolic link. Open an elevated Command Prompt and run:

C:\>mklink /d c:\target\bridge e:\source

Syntax: mklink /d TARGET SOURCE_DIR

  • This command creates a symbolic link named “bridge” inside c:\target, pointing to e:\source. Opening c:\target\bridge shows the contents of e:\source transparently, as if they were stored there.
  • Creating symbolic links requires administrator privileges. If you see “You do not have sufficient privilege to perform this operation,” run the Command Prompt as Administrator. As an alternative, mklink /j creates a junction that doesn’t need elevation, but it only works with local directories.
For more details:
Visit: http://ss64.com/nt/mklink.html

No comments :

Post a Comment

Your Comment and Question will help to make this blog better...