/// <summary> /// This method creates a shortcut under the user's <b>Startup</b> menu 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 CreateStartupShortcut(string shortcut, string description, string executable, string arguments) { Shortcut.CreateStartupShortcut(shortcut, description, executable, arguments, String.Empty); }
/// <summary> /// This method creates a shortcut under the user's <b>Startup</b> menu 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 CreateStartupShortcut(string shortcut) { Shortcut.CreateStartupShortcut(shortcut, String.Empty); }
/// <summary> /// This method creates a shortcut under the user's <b>Startup</b> menu 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 CreateStartupShortcut(string shortcut, string description) { Shortcut.CreateStartupShortcut(shortcut, description, Application.ExecutablePath); }
/// <summary> /// This method creates a shortcut under the user's <b>Startup</b> menu using /// a default shortcut name. /// </summary> /// <remarks> /// The current application's executable name is used as default shortcut name. /// </remarks> public static void CreateStartupShortcut() { Shortcut.CreateStartupShortcut(String.Empty); }