ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
ShellControls.TJamShellList.InvokeCommandOnFolder

Executes a context menu command for the listed folder.

Syntax
Pascal
function InvokeCommandOnFolder(const pCommand: TShellCommand): Boolean;
Parameters 
Description 
const pCommand: TShellCommand 
The command that should be executed.  

True if the command was executed successfully.

Use InvokeCommandOnFolder to execute a command of the context menu for the listed folder. See also .

This method can be useful for copying or moving files from one TJamShellList to another. The following sample code will copy the selected files of ShellList1 to ShellList2:

ShellList1.InvokeCommandOnFolder(saCopy);
ShellList2.InvokeCommandOnFolder(saPaste);