Skip to main content

Create symbolic links & directory junctions (hard & soft file system links)

Posted February 2007 by Steve Sinchak

Windows Vista includes a great little utility that allows users to finally make soft and hard file system links in the file system.  This can be very useful from a software compatibility standpoint as well as a great way to organize your computer.  Unlike a shortcut, a link is at the file system level and can be used to create an alias for a file or folder that is in a different location.  For example, you can create a hard link (Directory junction) called c:\win that points to c:\windows\system32. After the link is created, you can open up command prompt or explorer and browse to c:\win and you will see the contents of c:\windows\system32. This is not a new technology, it has actually been a core Linux and Unix feature for as far as I can remember but it is nice to finally have it in Windows Vista.

Links can be created with the mklink command line utility.

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.

Let's say that you want to create a directory junction like I mentioned earlier called c:\win that points to c:\windows\system32:

  1. Open up an Administrative Level command prompt.
  2. Run: mklink /j c:\win c:\windows\system32

Related Posts


If you own a Google Chromecast streaming device, you can easily share a browser tab in Chrome browser or even your entire desktop.  This can be very useful when presenting from your laptop or if you just want to watch something on a big screen that is only on your PC.  The only requirement is you must be on the same network as your Chromecast...

Read More

If you are a fan of minimalist desktop experiences, hiding the desktop icons are an easy way to clean up the Windows interface.  Instead of saving everything to your desktop, use the default profile folders such as downloads and documents.  Actually hiding all the icons on your desktop is a very simple customization hidden in the right-click context menu.  Just right-click on the desktop, select View...

Read More

Google security researchers have published details about a major security flaw found in the SSL protocol that is used to encrypt data transferred between your browser and a web server. SSL is typically used in situations where logon credentials are validated...

Read More

Enabling two-factor authentication is a great way to add an additional level of protection to your Microsoft account.  Even if your password is stolen, your account is still protected because two-factor authetication requires an additional level of verification to log in. Microsoft calls their version of two-factor authentication "two-step verification" and it works by providing you with a random code...

Read More