dd these references:
- Microsoft Shell Controls And Automation
- Windows Script Host Object Model
Add this namespaces:
using Shell32;
using IWshRuntimeLibrary;
Next appears to be working:
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();