Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to create a directory hard link (not a symbolic one).

I've tried this: mklink /d /h newfolder currentfolder but it's telling me Access is denied. I don't understand how is access denied because I'm running batch as administrator.

How do we create a directory hard link?

Windows Vista Home Premium SP2

share|improve this question
up vote 8 down vote accepted

I think that hard links are for files only and not directories.

share|improve this answer
Yes, there is no such thing as a directory hard link, only junction points and symbolic links. – Harry Johnston Oct 5 '11 at 3:46
Hardlinks for directories are technically possible, but need great care to avoid loops in the filesystem. The only OS which allows them is Mac OS X 10.5, for use in Time Machine. – grawity Oct 5 '11 at 6:04
> I think that hard links are for files only and not directories. Thanks for the confirmation; I keep intending to read up on symlinks and such: 1 2 3 4 – Synetech Dec 23 '11 at 3:22
well... under linux-systems you can use mount --bind for folders but i'm not sure if there is something similar in windows! – DJCrashdummy Oct 19 '15 at 13:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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