All projects

tcmd-plugins

Total Commander plugins and scripts, including a Lister viewer for Windows shortcut (.lnk) properties.

Total Commander plugins and scripts, currently featuring a Lister viewer for Windows shortcut (.lnk) properties.

Contents

Path Purpose
shortcuts_vbs/shortcuts.vb VBScript that reads a Windows shortcut and formats its properties for display.
shortcuts_vbs/shortcuts.wlx Bundled 32-bit Lister plugin that hosts the script; a renamed copy of Ivan / Atlanoff's wlx_vbscript loader, version 0.5.1.0.
LICENSE MIT license for Kody Brown's work in this repository.

shortcuts_vbs is the only plugin directory currently included. There is no installer, build project, automated test suite, or source code for the bundled third-party loader.

What is shortcuts_vbs?

It lets you inspect a Windows .lnk shortcut's settings in Total Commander's Lister viewer. This is useful when you want to see what a shortcut points to, including command-line arguments and its starting directory.

The script displays these properties:

Illustrative output, with values depending on the selected shortcut:

 Target Path       = C:\Tools\Example\example.exe
 Arguments         = --verbose

 Working Directory = C:\Tools\Example

 Hotkey            = Ctrl+Alt+E
 Window Style      = Normal

 Icon Location     = C:\Tools\Example\example.exe,0

 Description:
 Launch Example with verbose output

The script uses WScript.Shell.CreateShortcut(file_name) to read the shortcut and returns the formatted text through result_text. It does not call Save, launch the target, or write an export file. Despite its .vb extension, this is VBScript hosted by the plugin, rather than a Visual Basic .NET project or a standalone command-line script.

Requirements and manual setup

Manual setup guidance below has not been verified in a running Total Commander installation as part of this documentation update. Compatibility with current Windows and Total Commander versions has not been established.

  1. Copy the shortcuts_vbs directory to a permanent plugin location.
  2. Keep shortcuts.vb beside shortcuts.wlx, preserving both filenames.
  3. Register shortcuts.wlx as a Lister (WLX) plugin in Total Commander. See the official Lister plugin installation instructions under "How to install a lister plugin".
  4. Restrict the plugin's detection rule to Windows shortcut files with EXT="LNK". The script itself does not check the file extension.
  5. Select a .lnk file and press F3 to open Lister with plugins enabled.

There is no compilation step for the supplied script. Its display settings are at the top of shortcuts.vb: Consolas, size 9, wrapping enabled, and both scrollbars. Edit those values to customize the text view.

Attribution and license