Using C#, how can I delete a shortcut from a user’s desktop?
Tried this with no success:
string WinUser = WindowsIdentity.GetCurrent().Name;
WinUser = WinUser.Substring(WinUser.LastIndexOf("\\") + 1);
File.Delete("C:\\Users\\" + WinUser + "\\Desktop\\Touch Data.lnk");
What am I missing? Appreciate any advice on this!
Try the following: