예제 #1
0
 private static void CreateShortcut(string target, string workingDirectory, string description, string shortcutFile)
 {
     using (var shortcut = new ShellLink())
     {
         shortcut.Target           = target;
         shortcut.WorkingDirectory = workingDirectory;
         shortcut.Description      = description;
         shortcut.DisplayMode      = ShellLink.LinkDisplayMode.edmNormal;
         shortcut.Save(shortcutFile);
     }
 }
 private static void CreateShortcut(string target, string workingDirectory, string description, string shortcutFile)
 {
     using(var shortcut = new ShellLink())
     {
         shortcut.Target = target;
         shortcut.WorkingDirectory = workingDirectory;
         shortcut.Description = description;
         shortcut.DisplayMode = ShellLink.LinkDisplayMode.edmNormal;
         shortcut.Save(shortcutFile);
     }
 }