windows symbolic link target

Sree Ram picture Sree Ram · Apr 17, 2012 · Viewed 24.2k times · Source

Say that I set up a symbolic link:

mklink  /D C:\root\Public\mytextfile.txt C:\root\Public\myothertextfile.txt

Editor's note: Option /D - which is for creating directory symlinks - is at odds with targeting files, as in this example, which has caused some confusion. To create a file symlink, simply omit /D.

Is there a way to see what the target of mytextfile.txt is, using the command line?

Answer

Paul Verest picture Paul Verest · Sep 28, 2014

As Harry Johnston said dir command shows the target of symbolic links

2014/07/31  11:22    <DIR>          libs
2014/08/01  13:53             4,997 mobile.iml
2014/07/31  11:22               689 proguard-rules.pro
2014/09/28  10:54    <JUNCTION>     res [\??\C:\Users\_____\mobile\src\main\res]