Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

In Linux I can do this :

 ln -s /tmp/mydocs /home/user/docs/

it will create alias to /home/user/docs/ and I can access to docs with cd /tmp/mydocs/

In windows :

I have this directory c:\users\user1\docs\

i want to create shortcut named mydocs, so i can access to docs directory by cd mydocs

is this possible??

share|improve this question
    
superuser.com/questions/548829/… –  STTR May 15 '13 at 16:57
add comment

marked as duplicate by studiohack May 15 '13 at 23:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 2 down vote accepted

In linux you can use ln command to create symbolic link, but in windows you have to use mklink command to create symbolic links:

MKLINK [[/D] | [/H] | [/J]] Link Target

    /D      Creates a directory symbolic link.  Default is a file
            symbolic link.
    /H      Creates a hard link instead of a symbolic link.
    /J      Creates a Directory Junction.
    Link    specifies the new symbolic link name.
    Target  specifies the path (relative or absolute) that the new link
            refers to.

Tip: Symbolic link just works on NTFS file system and Windows vista, Windows 7, Windows server 2008.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.