ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TJamShellList.InvokeCommandOnSelected Method

Executes a context menu command for all selected items.

Syntax
Pascal
function InvokeCommandOnSelected(const Command: String): Boolean;

Use InvokeCommandOnSelected to execute a command of the context menu on all selected items. command is the name of the command, which should be executed. Which commands are available depends on the selected object(s). For a list of common commands see TShellBrowser.InvokeContextMenuCommand.

The following example will open all selected files in their associated application:

JamShellList.InvokeCommandOnSelected('default');

The following example will show properties dialog for the elected object(s):

JamShellList.InvokeCommandOnSelected('properties');
Copyright (c) 2011. All rights reserved.