| FileSystemCreateShortcut Method |
Creates a Windows shortcut, or link respectively.
Namespace:
Mastersign.Bench
Assembly:
BenchLib (in BenchLib.dll) Version: 0.22.0.0 (0.22.0.0)
Syntax public static void CreateShortcut(
string file,
string target,
string arguments = null,
string workingDir = null,
string iconPath = null,
FileSystemShortcutWindowStyle windowStyle = FileSystemShortcutWindowStyle.Default
)
Public Shared Sub CreateShortcut (
file As String,
target As String,
Optional arguments As String = Nothing,
Optional workingDir As String = Nothing,
Optional iconPath As String = Nothing,
Optional windowStyle As FileSystemShortcutWindowStyle = FileSystemShortcutWindowStyle.Default
)
Parameters
- file
- Type: SystemString
A path to the shortcut file (*.lnk). - target
- Type: SystemString
A path to the target file of the shortcut. - arguments (Optional)
- Type: SystemString
An command line argument string to pass to the target file, or null. - workingDir (Optional)
- Type: SystemString
A path to the working directory to run the target file in, or null. - iconPath (Optional)
- Type: SystemString
A path to the icon for the shortcut (*.exe or *.ico), or null. - windowStyle (Optional)
- Type: Mastersign.BenchFileSystemShortcutWindowStyle
The window style to start the target file with, or null.
See Also