8

If I've created a directory link via mklink, how can I figure out if it was a symbolic link, a directory junction, or a hard link (ie whether I used /d, /j, or /h)?

1
  • 2
    You can't create a directory hard link. Apart from that, heavyd's answer is correct.
    – efotinis
    Feb 9, 2010 at 10:27

1 Answer 1

9

At the command line you can type

dir /a

You should see something similar to:

02/08/2010  11:40 PM    <SYMLINKD>     d1 [..\targetdir1] 
02/08/2010  11:41 PM    <JUNCTION>     d2 [..\targetdir2]

This shows a directory symlink (/D) and a directory junction (/J)

1
  • This need to be in command prompt and NOT in powershell.
    – nick-s
    Nov 16, 2021 at 22:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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