/// <summary> /// This method creates a shortcut on the user's <b>Desktop</b> using given /// shortcut name, description, the fully qualified executable path and a /// space separated list of additional arguments. /// </summary> /// <remarks> /// The given executable's name is used if parameter <paramref name="shortcut"/> /// is not set. /// </remarks> /// <param name="shortcut"> /// The shortcut name to be used. This parameter is <b>optional</b>. /// </param> /// <param name="description"> /// The description of the shortcut to create. This parameter is <b>optional</b>. /// </param> /// <param name="executable"> /// The fully qualified executable path. This parameter is <b>mandatory</b>. /// </param> /// <param name="arguments"> /// The space separated list of additional arguments. This parameter is <b>optional</b>. /// </param> public static void CreateDesktopShortcut(string shortcut, string description, string executable, string arguments) { Shortcut.CreateDesktopShortcut(shortcut, description, executable, arguments, String.Empty); }
/// <summary> /// This method creates a shortcut on the user's <b>Desktop</b> using the given /// shortcut name. /// </summary> /// <remarks> /// The current application's executable name is used if parameter /// <paramref name="shortcut"/> is not set. /// </remarks> /// <param name="shortcut"> /// The shortcut name to be used. This parameter is <b>optional</b>. /// </param> public static void CreateDesktopShortcut(string shortcut) { Shortcut.CreateDesktopShortcut(shortcut, String.Empty); }
/// <summary> /// This method creates a shortcut on the user's <b>Desktop</b> using given /// shortcut name and a description as well. /// </summary> /// <remarks> /// The current application's executable name is used if parameter /// <paramref name="shortcut"/> is not set. /// </remarks> /// <param name="shortcut"> /// The shortcut name to be used. This parameter is <b>optional</b>. /// </param> /// <param name="description"> /// The description of the shortcut to create. This parameter is <b>optional</b>. /// </param> public static void CreateDesktopShortcut(string shortcut, string description) { Shortcut.CreateDesktopShortcut(shortcut, description, Application.ExecutablePath); }
/// <summary> /// This method creates a shortcut on the user's <b>Desktop</b> using a default /// shortcut name. /// </summary> /// <remarks> /// The current application's executable name is used as default shortcut name. /// </remarks> public static void CreateDesktopShortcut() { Shortcut.CreateDesktopShortcut(String.Empty); }