创建快捷方式

WshShell shell = new WshShell();//建立对象
            //生成快捷方式文件,指定路径及文件名
            IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut( Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) + "" + "APP.lnk");
            //快捷方式指向的目标
            shortcut.TargetPath = System.Reflection.Assembly.GetExecutingAssembly().Location;
            //起始目录
            shortcut.WorkingDirectory = System.Environment.CurrentDirectory;
            shortcut.WindowStyle = 1;//窗口类型
            shortcut.Description = "APP";//描述
            shortcut.IconLocation = System.Environment.SystemDirectory + "" + "shell32.dll, 165";//图标
            shortcut.Save();//保存

Interop.IWshRuntimeLibrary.dll

原文地址:https://www.cnblogs.com/wjshan0808/p/4235495.html