Dave's Brain

Browse - Computer Tips - How can I make a symbolic link on Windows (like the Linux ls -s) ?

Date: 2013nov4
OS: Windows 7 and later
Keywords: symlink, symlinks

Q.  How can I make a symbolic link on Windows (like the Linux ls -s) ?

A.  Use the /j option of the mklink command.
For example:

mklink /j c:\htdocs e:\htdocs - Put websites on drive e: mklink /j "c:\users\dave\My Videos\travel" e:\TravelVideos
mklink /j "c:\users\dave\My Videos\arty" h:\ArtVideos - Split videos over two disks
Finally (unlike shortcuts) this is totally transparent to programs. You can cd to the folder, etc.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.