日期:2009-12-31 浏览次数:20415 次
C#生成桌面快捷方式,如下代码:
- WindowsShortcut.Shortcut sc = new WindowsShortcut.Shortcut();
- sc.Path = this.currentDir + "/平台启动器.exe";
- sc.WorkingDirectory = this.currentDir;
- sc.Description = "平台启动器";
- string DesktopPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop);//得到桌面文件夹
- sc.Save(DesktopPath + "/平台启动器.lnk");