Home > Articles > ShellExecute function in RoutineBot

ShellExecute function in RoutineBot

June 17th, 2009

Syntax
ShellExecute( Path:String, Params:String [optional], WaitBeforeClose:Integer [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 parameters to be passed to the application.

WaitBeforeClose:Integer [optional]

if this parameter is 1, then interpreter wait, before application is running or file is opened. Otherwise, if this parameter is 0, function does not wait, before application(file) is running. If this parameter is 0 this function is equal to function Execute.

Return value

If file exists function return 1, otherwise function return 0.

Remarks

If WaitBeforeClose = 1 then function waits, before application will be closed.

Example
ShellExecute('C:\WINDOWS\notepad.exe','',1);
This example runs notepad.exe and waits until notepad is running.
Download example Shellexecute.

Reference
Execute function

  • Share/Bookmark

Developer Articles ,