How to create junction points in Windows 7? (Advanced)

Written by: Oliver Krautscheid - Published: Monday, February 15th, 2010 - Comments

Windows 2000 and higher supports symbolic links and junction points. The problem is that you can only manage them, but you can’t create junctions points in Windows 7 without some add-ons.

Ads:

How to create junction points in Windows 7

A symbolic link is a reference to another file or folder on your drive. Symbolic links or short symlinks are originally a linux-only feature, but since 2000 Windows supports them too. The difference between symbolic links and junction points is that a symbolic link can also point to a file or remote SMB network path (which means that you can also create cross-system symlinks, which could come in handy in a network if you don’t want to copy all of the files). Let’s say you want to launch a game or application from another PC, normally, you’d have to copy it to your own PC, but with symlinks you can launch it as long as you are connected to the other PC.

Create & Remove Junction Points in Windows 7

Download Junction v1.05 for Windows
Copy it somewhere e.g. to \windows\system32\

You can then create junction points via the command line:

CD: C:\Windows\system32\
junction.exe “c:\new folder” “d:\path\real folder”

junction.exe Destination Source is the abstract syntax where the Destination is the new folder and Source the actual folder

Remove junction points:

junction.exe -d “c:\new folder”


Tags: ,

Trending On Windows 7 Themes .Net

Related Questions


Written by: Oliver Krautscheid
Oliver is the founder and lead editor of this site. He is interested in finding new ways to break Windows, find common errors and help others to fix them. Aside from that, he loves to fully customize systems with Rainmeter and Dreamscene, find out more about ancient civilizations like the Chachapoya, sharpen his digital photography skills and create software with a small group of selected developers. If you would like to connect with him to discuss anything, send him a mail!

Learn More About.Me

Follow me on Twitter for daily updates: Twitter Follower

Contact The Author: support@windows7themes.net Get Free Help.png

Connect With Our Site:

facebook google twitter


Need help? Ask a question at our QA site, click the red button to get started:

4 Responses to How to create junction points in Windows 7? (Advanced)

  1. Orange Community Approved Comment:
    JAG said:

    you can’t create junctions points in Windows 7 without some add-ons.

    This is NOT true. It was even possible in XP (wikipedia says you needed the resource kits to use the linkd command).

    For Vista/Win7, search for mklink (specifically mklink /J for junction).

    For XP, this is the preferred method however.

    Honestly, Microsoft makes it a bit too confusing about when you need a:

    soft link
    hard link
    junction point

  2. Orange Community Approved Comment:
    andy said:

    here’s one for the specialists:

    you can even create *directory* junction points without mklink!!
    But without the tool, it will be restricted to whole drives.

    Example:
    You want to get rid of the obsolete drive-letter system and thus you’ve created a directory called C:\Mounts.
    Now you don’t want to call your D drive by D:\ anymore but by C:\Mounts\Ddrv. That makes sense because if you get another primary partition in between, by default, new letter became D:\, and “old” D:\ would get moved to E:\. So either you want to use some ancient tools that move D:\ to E:\ (yes I’ve used them often too, but 15 years ago! =p) or go the modern way!

    {1} Create a directory “Ddrv” in your C:\Mounts
    {2} Now right-click on the “” icon you presumedly have on your desktop and say “Manage”, then
    {3} “Disk Management”

    Your drives and partitions created on them will show up.

    {4} Right-click on one of your NTFS partitions, and choose…
    {5} “Change Drive Letter and Paths…”
    {6} Now say “Add -> Mount in the following NTFS folder…”
    {7} Specify your previously created C:\Mounts\Ddrv

    AND VOILA, what you’ve just created is a shiny directory junction!!

  3. Orange Community Approved Comment:
    George Gruber said:

    I was fortunate enough to boot up with drives C and D as they should be. I had started installing software and some had links in them. Using robocopy /mir /xj resolved that. What was interesting is that until I was certain it was going to work correctly, I renamed the original folder on C to C:\Users_DriveC. When I restarted into Windows 8, both Explorer and Directory Opus (great program if you have to manage many files) shows C:\Users as a symbolic link and a folder C:\Users (Directory Opus could only estimate a size for that folder for some reason and it was much larger than it should have been) and it didn’t reflect C:\Users_DriveC. I opened up a command prompt and dir C:\ /ad showed the folders properly. I then removed the directory C:\Users_DriveC and low and behold the extra, unlinked C:\Users went away.

    So the short story for me was to use robocopy /mir /xj instead of xcopy you do need to remove the original C:\Users folder.

    One peculiar thing I noticed is that my library reflects as C:\Users but (thankfully), copying files there actually stores them on D:\Users. This can be a bit confusing for those of us that delve into the file system but it did work with the above notes for me.

    Thank you for this great method!

  4. Orange Community Approved Comment:
    oliversk said:

    Thanks for the followup on this George, I think others will find it helpful. Cheers

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current day month ye@r *