API:Vcl.ExtActns.TFileRun.Operation
Delphi
property Operation: string read FOperation write FOperation default 0;
C++
__property Operation = {default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.ExtActns.pas Vcl.ExtActns.hpp |
Vcl.ExtActns | TFileRun |
Description
Indicates what TCustomFileRun should do with the target file.
Vcl.ExtActns.TFileRun.Operation inherits from Vcl.ExtActns.TCustomFileRun.Operation. All content below this line refers to Vcl.ExtActns.TCustomFileRun.Operation.
Indicates what TCustomFileRun should do with the target file.
Set Operation to indicate what should be done with the target file when TCustomFileRun fires. The possible values for Operation depend on the particular file or folder specified by FileName or selected by the user when Browse is true. The possible operations for a particular file or folder are listed in the system Registry.
The following strings are usually valid:
Value | Meaning |
---|---|
edit |
TCustomFileRun opens an editor. If FileName is not an editable file, the action fails. |
explore |
TCustomFileRun launches the Windows explorer for the folder specified by FileName. |
open |
TCustomFileRun opens the file specified by FileName. FileName can be an executable file, a file associated with an application that can open it, or a folder. |
|
TCustomFileRun prints the file specified by FileName. If FileName is a binary file (for example, if it is an executable), the action fails. |
properties |
TCustomFileRun displays the file or folder's properties in a Properties dialog. |
Note: If Operation is an empty string, Windows tries to use the "open" operation. If the specified file does not support the "open" operation, Windows tries to use the default operation. If there is no "open" operation and no default operation, and if the application is running on Windows 2000 or later, Windows uses the first verb listed in the Registry.