Exemple #1
0
 /// <summary>
 /// This method tries to determine if the given shortcut name exists within the
 /// user's <b>Startup</b> menu.
 /// </summary>
 /// <param name="shortcut">
 /// The shortcut name to be used. This parameter is <b>mandatory</b>.
 /// </param>
 /// <returns>
 /// This method returns <c>true</c> if the given shortcut name exists within the
 /// <b>Startup</b> menu and <c>false</c> otherwise.
 /// </returns>
 public static bool IsStartupShortcut(string shortcut)
 {
     return(Shortcut.IsShortcut(Environment.SpecialFolder.Startup, shortcut));
 }
Exemple #2
0
 /// <summary>
 /// This method tries to determine if the given shortcut name exists on the user's
 /// <b>Desktop</b>.
 /// </summary>
 /// <param name="shortcut">
 /// The shortcut name to be used. This parameter is <b>mandatory</b>.
 /// </param>
 /// <returns>
 /// This method returns <c>true</c> if the given shortcut name exists on the user's
 /// <b>Desktop</b> and <c>false</c> otherwise.
 /// </returns>
 public static bool IsDesktopShortcut(string shortcut)
 {
     return(Shortcut.IsShortcut(Environment.SpecialFolder.DesktopDirectory, shortcut));
 }