Symbolic links

MKLINK /D myLink linkTarget

Remove the link in the same way as you remove a file or directory but you need to use the command appropriate to the type of the link target:

  • del for files;
  • rmdir for directories.

Is file “myLink” a symlink?

FSUTIL reparsepoint query "myLink" | FIND "Symbolic Link" > NUL 2>&1 && ECHO exists and is link