try { string s5 = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); WshShellClass shell = new WshShellClass(); IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(s5 + "\\cater.lnk"); shortcut.TargetPath = Application.ExecutablePath; shortcut.Description = "Any Description here "; shortcut.Save(); } catch (Exception ex) { MessageBox.Show(ex.Message); }
IWshShortcut dll
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)