IWinShellExecuteInfo.Verb

Syntax

Verb: String;

Description

The Verb property determines a command that should be used on opening an application or a document.

Comments

The list of commands supported by the certain types of files is available in the operating system registry. Each command uses the subsection located in the following registry branch: [HKEY_CLASSES_ROOT\<File type>+file\Shell] (for example, [HKEY_CLASSES_ROOT\txtfile\shell] - contains a list of commands supported by text files).

Example

Executing the example requires the c:\Report.txt text file.

Sub UserProc;
Var
    Info: IWinShellExecuteInfo;
Begin
    Info := New WinShellExecuteInfo.Create;
    Info.File := "c:\Report.txt";
    Info.Verb := "Print";
    WinApplication.ShellExecute(Info);
End Sub UserProc;

After executing the example the specified file is printed.

See also:

IWinShellExecuteInfo