How to create a symbolic link on windows

Home / Windows / How to create a symbolic link on windows

This article shows you how to create a symbolic link on Windows.

If you want to easily access folders and files from different folders without maintaining duplicate copies, then it’s a good idea to use Symbolic Links.

One handy trick you can pull with Symbolic links is synchronizing any folder with Dropbox without moving it actually into your dropbox folder. Read on to see how this can be done.

Creating a symbolic link

You can create a symbolic link with the mklink command, which stands for… “make link”.

  1. Open a command box and type mklink to see the options:

    mklink command
    mklink command

    You have some different options:

    In this example we will create a hard link between two folders. Soft-links are very easily created in the Windows Explorer by right-clinking and choosing “Create shortcut”.

  2. Determine the link location and the target location and issue the command


    This will create a link folder C:\resolvethis\projects that mirrors all content from the real folder D:\data\projects.

    The folder C:\resolvethis\projects may not exist yet, else you will get an error.
    If the link folder or target folder contain spaces in the name, you should enclose them in double quotes.

Synchronizing any folder to dropbox (or OneDrive,…)

If you want, for example, to backup your documents from to dropbox, you can issue this command:

You should get the “Junction created” message if all went well:

backup folder to dropbox
backup folder to dropbox

Deleting a Symbolic Link

To delete a symbolic link, just delete the link folder or file just like you would delete a normal folder or file.

See also