CREATESHORTCUT                                            Function

CreateShortCut(ShortcutName, TargetPath)

Description

Creates a directory shortcut to an executable. Returns true if successful, false if it cannot create the shortcut or it already exists. The target path should include quote marks, so it can be parsed properly..

Example

REM CreateShortcut Example

'This will create a link in the Programs folder to your program.

err = CreateShortcut("\Windows\Start Menu\Programs\My Test.exe", """" & currentPath & """")

Output

Related Items