Windows – How to Identify Symbolic Links, Hard Links, and Directory Junctions

mklinksymbolic-linkwindows

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)?

Best Answer

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)

Related Question