1. #1
    eset_boy's Avatar
    eset_boy is offline Windows Enthusiast
    Join Date
    Aug 2008
    Location
    Home
    Posts
    63

    Default How to create symlinks in Vista

    Symlinks or Symbolic Links are symbolic link ( also known as a soft link) consists of a special type of file that serves as a reference to another file or directory. This feature is availble finally in Windows Vista. You can create symlinks using the windows vista command line utility termed as “MKLINK”.

    Syntax for Symlink in Vista

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

    where [] stands for optional and / is used as option

    * /D - Create a directory symbolic link ( soft link ). Default is file symbolic link.
    * /H - Creates a Hard link ( link to a file ) .
    * /J - Creates a directory junction
    * LINK - Specifies a new symbolic link name
    * Target - Specifies the path that the new link will refer to.

    Example of Creating a symbolic link to directory

    On command prompt, first navigate to the directory you want. Then ( Here I am at C directory )

    * C:\ > mklink /D mySymDir D:\MyBlogData

    The above example makes all the data in “C” directory available in D:\Myblogdata. Juts make a Dir in DMyblogdata and You will see all the files of C directory.

    Here we will see how we can make data of two directory available in one symlink.

    Our Target

    Take Directories d:\Blogdata and d:\Images . Now you want to see data of both the directory into a new place say d:\Blog. Now we will use MKLINK /J option to do it. /J stands for directory junction.

    Steps to make a junction directory / symlink

    * MKLINK /D c:\blog d:\BlogData
    * The above steps create a hard link and all data under D:\blogdata directory can be seen in c:\blog.
    * Now type MKLINK /J c:\blog d:\images
    * Now your d:\images will be added to the symlink you have already create.
    * Now when you browse c:\blog you will be able to see both directories data.


    source1
    source2
    Last edited by eset_boy; 16th August 2008 at 23:36.

  2. #2
    Pankaj's Avatar
    Pankaj is offline Senior Member
    Join Date
    Nov 2008
    Location
    Pune
    Posts
    164

    Default

    But what are symlinks? I mean give me some practical example. Or is it geek stuff...in that case forget it.

  3. #3
    seti is offline Member
    Join Date
    Nov 2008
    Posts
    1,923

    Default

    Quote Originally Posted by Pankaj View Post
    But what are symlinks? I mean give me some practical example. Or is it geek stuff...in that case forget it.
    well above my head too, please tell us in simple terms if possible

  4. #4
    whs's Avatar
    whs
    whs is offline Gold Member
    Join Date
    Oct 2008
    Posts
    1,421

    Default

    It's a fancy shortcut. There are many of those in the system anyhow. Here is some reading ( Smart Software: Symbolic Links in Vista ).

  5. #5
    seti is offline Member
    Join Date
    Nov 2008
    Posts
    1,923

    Default

    Quote Originally Posted by whs View Post
    It's a fancy shortcut. There are many of those in the system anyhow. Here is some reading ( Smart Software: Symbolic Links in Vista ).
    thanks for that

  6. #6
    dmudgal's Avatar
    dmudgal is offline Windows Enthusiast
    Join Date
    Aug 2008
    Posts
    108

    Default

    thanks for the stuff .....Eset_boy

  7. #7
    iMav's Avatar
    iMav is offline Gold Member
    Join Date
    Jul 2008
    Posts
    921

    Default

    Interesting, will have a look at how this helps, though the second source makes some sense. Thanks for this.

  8. #8
    HappyAndyK's Avatar
    HappyAndyK is offline Site Administrator
    Join Date
    Jun 2008
    Posts
    7,401

  9. #9
    Pankaj's Avatar
    Pankaj is offline Senior Member
    Join Date
    Nov 2008
    Location
    Pune
    Posts
    164

    Default

    Okiz--thanks for all the explainations.

  10. #10
    nitinagarwal1988's Avatar
    nitinagarwal1988 is offline Microsoft MVP
    Join Date
    Jan 2009
    Location
    Pilani, India
    Posts
    1,570

    Default

    thanks for the link whs and thanks eset boy for informing us...
    Last edited by nitinagarwal1988; 3rd February 2009 at 16:44.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22