Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 7 down vote accepted

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

share|improve this answer
4  
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
add comment

Your Answer

 
discard

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.