Код: Выделить всё
public static void CreateDesktopShortcut()
{
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
string shortcutPath = Path.Combine(desktopPath, "thing.lnk");
var shell = new Shell32.Shell();
var shortcut = (Shell32.ShellLinkObject)shell.CreateShortcut(shortcutPath);
shortcut.TargetPath = "path.exe";
shortcut.Description = "interesting description";
shortcut.Save();
}
Дополнительная информация:
Добавление «Элементов управления и автоматизации Microsoft Shell» в качестве com, Shell32.Shell существует, но не содержит метода CreateShortcut
Подробнее здесь: https://stackoverflow.com/questions/792 ... pplication
Мобильная версия