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

link|improve this question

feedback

1 Answer

up vote 4 down vote accepted

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

link|improve this answer
2  
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
feedback

Your Answer

 
or
required, but never shown

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