I'm trying to delete an old desktop shortcut on program startup. Only this code isn't working.
' Get rid of the updater icon on the desktop. Dim DeleteShortcut As String DeleteShortcut = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\Sample Shortcut.lnk" If System.IO.File.Exists(DeleteShortcut) = True Then System.IO.File.Delete(DeleteShortcut) End If
Looks pretty straight forward- but just not working. Is there another way to do this?