# C1.Win.C1Win7Pack.C1TaskbarButton.AddShortcutToStartMenu

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Win7Pack_C1TaskbarButton_AddShortcutToStartMenu_" data-uid="C1.Win.C1Win7Pack.C1TaskbarButton.AddShortcutToStartMenu*">AddShortcutToStartMenu Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Win7Pack_C1TaskbarButton_AddShortcutToStartMenu_" data-uid="C1.Win.C1Win7Pack.C1TaskbarButton.AddShortcutToStartMenu*"></a>
<h4 id="C1_Win_C1Win7Pack_C1TaskbarButton_AddShortcutToStartMenu_System_String_System_String_System_String_System_String_System_String_System_String_System_Int32_" data-uid="C1.Win.C1Win7Pack.C1TaskbarButton.AddShortcutToStartMenu(System.String,System.String,System.String,System.String,System.String,System.String,System.Int32)">AddShortcutToStartMenu(string, string, string, string, string, string, int)</h4>
<div class="markdown level1 summary"><p>Creates a shortcut on the user's Start Menu.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddShortcutToStartMenu(string appName = null, string description = null, string executablePath = null, string arguments = null, string startupPath = null, string iconPath = null, int iconIndex = 0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddShortcutToStartMenu(Optional appName As String = Nothing, Optional description As String = Nothing, Optional executablePath As String = Nothing, Optional arguments As String = Nothing, Optional startupPath As String = Nothing, Optional iconPath As String = Nothing, Optional iconIndex As Integer = 0)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">appName</span></td>
      <td><p>The application name as it appears on the Start Menu.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">description</span></td>
      <td><p>The description (comment) for a shortcut.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">executablePath</span></td>
      <td><p>The path and file name for the target of a shortcut.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">arguments</span></td>
      <td><p>The command-line arguments for a shortcut.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">startupPath</span></td>
      <td><p>The name of the working directory for a shortcut.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">iconPath</span></td>
      <td><p>The path of the file containing the shortcut icon.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">iconIndex</span></td>
      <td><p>The index of the icon.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
