Windows 符号链接目标

Windows 符号链接目标

假设我设置了一个符号链接:

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

有没有办法通过命令行查看 myothertextfile.txt 的目标是什么?

答案1

C:\root\public>mklink   C:\root\Public\mytextfile.txt C:\root\Public\myothertextfile.txt
symbolic link created for C:\root\Public\mytextfile.txt <<===>> C:\root\Public\myothertextfile.txt

C:\root\public>dir

 Directory of C:\root\public

04/17/2012  05:42 PM    <DIR>          .
04/17/2012  05:42 PM    <DIR>          ..
04/17/2012  05:38 PM                 0 myothertextfile.txt
04/17/2012  05:42 PM    <SYMLINK>      mytextfile.txt [C:\root\Public\myothertextfile.txt]

相关内容