I am trying to delete a link file from the desktop using this:
Dim f As FolderItem
f = SpecialFolder.Desktop.Child(“file.lnk”)
If f.exists Then f.Delete
The result is the deleting of the executable, that the lnk file is linking. I just want to delete the lnk file from the desktop, not the executable.
How can I delete this file?