I have lots of symbolic links (windows 7). How to know if there are working or if they are dead (ie original file has been deleted/moved/renamed) ? I tried
if not exist mylink.txt echo The link is dead
but this doesn't work : if the link exist,
if exist always answer
true regardless if the link is dead or not.