You are here: Symbol Reference > _AbProc Namespace > Functions > AbExecuteFile Function
ContentsIndexHome
PreviousUpNext
_AbProc.AbExecuteFile Function
Send Feedback

Calls/opens a program, a website or mail client

File
Pascal
function AbExecuteFile(const FileName: string; const Params: string; const DefaultDir: string; ShowCmd: Integer): THandle;
C++
THandle AbExecuteFile(const AnsiString FileName, const AnsiString Params, const AnsiString DefaultDir, int ShowCmd);
Parameters
Parameters 
Description 
const FileName: string 
the filename 
const Params: string 
parameters 
const DefaultDir: string 
default directory 
ShowCmd: Integer 
Show command 
Returns

A handle to the webbrowser or mail client or application

Description

Method to open a program, a website in your favorite browser or opens your mail client

Example
AbExecuteFile('http://www.AbakusVCL.com','','',SW_SHOWNOACTIVATE);

 

Opens our website in your webbrowser 

 

AbExecuteFile('MailTo:webmaster@abaecker.com','','',SW_SHOWNOACTIVATE); 

 

Opens a new email to webmaster@abaecker.com

Hard-& Software A.Baecker
What do you think about this topic? Send feedback!