Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.… – STTR May 15 '13 at 16:57
up vote 4 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
+1 for answering with MKLINK. I got tired of looking at answers that recommend DOSKEY. – Agi Hammerthief Sep 25 '14 at 20:30

Not the answer you're looking for? Browse other questions tagged .