Search code examples
windowssymlink

windows symbolic link target


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?


Solution

  • 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]