예제 #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);
     }
 }
예제 #2
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);
			}
		}