docServerUserLandCom picture
Contents
Frontier Site

winShell.createShortcut

Syntax winShell.createShortcut (path, targetPath)

Params path is the path on disk to the new shortcut file.

targetPath is the path on disk that the shortcut points to.

Action Creates a shortcut at path linking to the file at targetPath.

Returns True.

Examples winShell.createShortcut ("C:\\Frontier.lnk", frontier.getProgramPath ())

   » true

Notes It's up to the caller to be sure there's a .lnk suffix at the end of path.

This verb is Windows-specific; it's implement by a VBScript script.

This verb requires that the Microsoft Script Control and Windows Scripting Host are installed.

On the Macintosh, call file.newAlias.

Once this verb has been burnt-in, file.newAlias will call this verb on Windows, so file.newAlias will be cross-platform.

This verb is new in Frontier 6.0.

See Also winShell.createUrlShortcut

winShell.resolveShortcut


© Copyright 1992-2026 UserLand Software. Email: webmaster@userland.com.