19

I see W7 seems to have more support for virtual folders, that don't correspond to actual directories on the disk. Does it also support proper symbolic links so I can e.g create a symbolic link c:\temp\external which maps to d:\xyz\, so that c:\temp\external\file.txt is d:\xyz\file.text? If so how do I create these?

25

Yes.

NTFS had the feature for some time, junctions have been available longer, and Vista was the first version of Windows with support, Windows 7 has improved it, apparently, but I'm not sure of the specifics off the top of my head.

From within an elevated (run as admin) cmd window you need to use the command mklink, usage is as such:

mklink <flag> link target

This creates link which points to target, both can be absolute or relative paths, link must not exist and obviously target must.

You can use the available flags to adjust the type of link created:

<no flag> - file symbolic link
/H        - file hard link
/D        - directory symbolic link
/J        - directory junction (hard link, essentially)
  • Ah, so it's only available from the command-line? Thanks. – Mr. Boy Jan 17 '11 at 20:35
  • @John, as far as I'm aware, yes, and only to admin users. – DMA57361 Jan 17 '11 at 20:36
2

Yes! I missed this feature in XP but they did add it in Widows 7. check out http://www.windows7home.net/how-to-create-symbolic-link-in-windows-7/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.