WshShell sl = new WshShell(); string dtpath = System.Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)+"\\wxk.lnk"; IWshShortcut sc = (IWshShortcut)sl.CreateShortcut(dtpath); sc.TargetPath = exePath; sc.Description = "新增應用程式的捷徑方式"; sc.Save();
沒有留言:
張貼留言