Saturday 29 September 2018

windows 7 - How can I delete a symbolic link?


I created a symlink using mklink. Now I need to change it but I can't figure out how to delete it so I can recreate it correctly.



Answer



Be very careful.


If you have a symbolic link that is a directory (made with mklink /d) then using del will delete all of the files in the target directory (the directory that the link points to), rather than just the link.


SOLUTION: rmdir on the other hand will only delete the directory link, not what the link points to.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...