ShellLink.CreateShortcut Method

This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.Utility.Platform
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)

Usage

'Usage
Dim linkFilename As String
Dim targetFilename As String
Dim description As String
Dim workingDirectory As String
Dim arguments As String
Dim returnValue As ShellLink

returnValue = ShellLink.CreateShortcut(linkFilename, targetFilename, description, workingDirectory, arguments)

Syntax

'Declaration
Public Shared Function CreateShortcut ( _
    linkFilename As String, _
    targetFilename As String, _
    description As String, _
    workingDirectory As String, _
    arguments As String _
) As ShellLink
public static ShellLink CreateShortcut (
    string linkFilename,
    string targetFilename,
    string description,
    string workingDirectory,
    string arguments
)
public:
static ShellLink^ CreateShortcut (
    String^ linkFilename, 
    String^ targetFilename, 
    String^ description, 
    String^ workingDirectory, 
    String^ arguments
)
public static ShellLink CreateShortcut (
    String linkFilename, 
    String targetFilename, 
    String description, 
    String workingDirectory, 
    String arguments
)
public static function CreateShortcut (
    linkFilename : String, 
    targetFilename : String, 
    description : String, 
    workingDirectory : String, 
    arguments : String
) : ShellLink

Parameters

  • linkFilename
  • targetFilename
  • description
  • workingDirectory
  • arguments

Return Value

Returns ShellLink.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

ShellLink Class
ShellLink Members
Microsoft.OneGet.Utility.Platform Namespace