ShellExecute
- execute a file

Basic price pattern detection
(AFL 3.40)


SYNTAX ShellExecute( ''filepath'', ''arguments'', ''parameters'', showcmd = 1 )
RETURNS NUMBER
FUNCTION The function opens a file or runs executable.

It is equivalent of Windows API ShellExecute, with one difference, it always uses "open" verb. This allows running executables, scripts, opening document files using their associated editors, etc.

If the function succeeds, it returns a value greater than 32. If the function fails, it returns an error value that indicates the cause of the failure.

For possible error codes, consult Microsoft documentation: http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx

In AmiBroker version 6.20 this function provides special feature that allows to run batches. If you use "runbatch" in first parameter you can specify the batch (.abb) file in 2nd argument and it will start a batch.

EXAMPLE // run notepad
ShellExecute("notepad.exe", "", "" );

// run batch
ShellExecute("runbatch", "path_to_batch_file.abb", "" );
SEE ALSO

References:

The ShellExecute function is used in the following formulas in AFL on-line library:

More information:

Updated on-line reference