Skip to main content

Create shortcut

Create a shortcut that opens a file: a .lnk file on Windows, a .desktop file or symbolic link elsewhere.

Command in the File toolkit · id ooa.file/create_shortcut · 6 inputs (2 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
PathFileYesFile the shortcut opens.
ShortcutFileYesShortcut to create; .lnk is added on Windows when missing.
ArgumentsStringNoCommand-line arguments passed when the shortcut is opened.
Working folderFileNoFolder the program starts in.
CommentStringNoTooltip text shown for the shortcut.
OverwriteBooleanNofalseReplace an existing shortcut.

Outputs​

OutputTypeWhat it is
pathFileCreated shortcut.