5

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??

Oliver Salzburg
  • 86,445
  • 63
  • 260
  • 306
Ould Abba
  • 201
  • 2
  • 3
  • 8
  • http://superuser.com/questions/548829/symlinks-for-admin-users-on-windows/548854#548854 – STTR May 15 '13 at 16:57

1 Answers1

8

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.

wonea
  • 1,817
  • 1
  • 23
  • 42
Sepahrad Salour
  • 968
  • 6
  • 14