var wsh = new IWshShell_Class(); IWshRuntimeLibrary.IWshShortcut shortcut = wsh.CreateShortcut( Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\shorcut2.lnk") as IWshRuntimeLibrary.IWshShortcut; shortcut.TargetPath = @"C:\Users\Zimin\Desktop\test folder"; shortcut.Save();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)