Back to component list

Run Command (foo_runcmd) 1.1

Finds and executes menu commands.

Main menu commands can be executed through a graphical user interface that can be invoked through the "File/Run Command" main menu command, or via the command line like this:

foobar2000.exe /runcmd=<pattern>

where <pattern> should be replaced with a pattern describing the command (see below). In both cases, the given pattern must unambiguously match a command, otherwise no command will be executed.

Context menu commands can be run via the command line using one of the following parameters:

foobar2000.exe /runcmd-files=<pattern> <list of files> foobar2000.exe /runcmd-playlist=<pattern> foobar2000.exe /runcmd-playing=<pattern>

Command patterns

A command patterns is a non-empty sequence of characters that is used to filter the list of available commands based on their path. The path of a command consists of two parts: the menu a command appears in and the name of the command. If a command is located at the top level, its path is just the name. Path components are separated using a "/" character (forward slash).

Examples:

To compare a pattern and a path, both the pattern and the path are split into components at "/" characters, even if the "/" characters is part of a menu or command name. A pattern is said to match a path, if the following conditions hold:

Normally, a pattern is used to filter a list commands. In that case, the results are further restricted by removing all matches except those with the highest number of equal components.

Examples:

Known problems and restrictions

The "Context Menu/Now Playing" and "Context Menu/Playlist Selection" do not react to changes in the playing song respectively the playlist selection while they are open.

Downloads