RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFileRun Class

TFileRun is the standard action for performing a specified operation on a file.

Pascal
TFileRun = class(TCustomFileRun);
C++
class TFileRun : public TCustomFileRun;

ExtActns

Add TFileRun to an action list to let your application launch an external application or dll in response to user actions. Controls linked to this action cause your application to perform the operation specified by the Operation property on the file specified by the FileName property.  

Before this action fires, configure its properties to indicate what application to launch and how to launch it: 

To indicate the target file to run, set the FileName property to the name of a file on which the external application operates or to the name of the application's executable file. If you want to let the user select the file name instead when the action fires, set the Browse property to true, and an open dialog appears when the action fires. 

To indicate what action to perform on the specified file, set the Operation property. 

To supply parameters to the external application when it is launched, use the Parameters property. 

To specify a default directory for the external application, use the Directory property. 

To control how the external application's window appears (minimized, maximized, hidden, and so on), use the ShowCmd property. 

If the external application needs a parent window (to parent a dialog such as a properties dialog), or if you want to allow TFileRun to display error messages, use the ParentControl property. 

 

TBrowseURL 

TSendMail 

TFileOpenWith 

TDownloadURL

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!