AddShortcutToStartMenu Method
In This Topic
Creates a shortcut on the user's Start Menu.
Syntax
'Declaration
Public Sub AddShortcutToStartMenu( _
Optional ByVal As String, _
Optional ByVal As String, _
Optional ByVal As String, _
Optional ByVal As String, _
Optional ByVal As String, _
Optional ByVal As String, _
Optional ByVal As Integer _
)
public void AddShortcutToStartMenu(
string ,
string ,
string ,
string ,
string ,
string ,
int
)
Parameters
- appName
- The application name as it appears on the Start Menu.
- description
- The description (comment) for a shortcut.
- executablePath
- The path and file name for the target of a shortcut.
- arguments
- The command-line arguments for a shortcut.
- startupPath
- The name of the working directory for a shortcut.
- iconPath
- The path of the file containing the shortcut icon.
- iconIndex
- The index of the icon.
See Also