Syntax
Execute( Path:String, Params:String [optional] )
Parameters
Path:String
string that specifies the file to execute. File can be executable file or some document.
Params:String [optional]
string that specifies the parameters to be passed to the application.
Return value
If file exists function returns 1, otherwise function returns 0.
Remarks
Function does not wait, before application will be closed.
Examples
open textfile
Execute('D:\SomeText.txt');
open notepad.exe
Execute('C:\WINDOWS\notepad.exe');
open file ‘D:\SomeText.txt’ in notepad
Execute('C:\WINDOWS\notepad.exe','D:\SomeText.txt');
Download example Execute
Reference
ShellExecute function
Leave a Reply