/// <summary> /// This method removes the shortcut for the given shortcut name from the user's /// <b>Desktop</b>. /// </summary> /// <param name="shortcut"> /// The shortcut name to be used. This parameter is <b>mandatory</b>. /// </param> public static void RemoveDesktopShortcut(string shortcut) { Shortcut.RemoveShortcut(Environment.SpecialFolder.DesktopDirectory, shortcut); }
/// <summary> /// This method removes the shortcut for the given shortcut name from the user's /// <b>Startup</b> menu. /// </summary> /// <param name="shortcut"> /// The shortcut name to be used. This parameter is <b>mandatory</b>. /// </param> public static void RemoveStartupShortcut(string shortcut) { Shortcut.RemoveShortcut(Environment.SpecialFolder.Startup, shortcut); }