Chapter 83. shellexecute
Table of Contents
This library is a wrapper for the Windows API SHellExecute() function. It is very handy for starting the appropriate program for a given content type. Use as an alternative to the !execute() system function. This is a Windows only library.
shellexecute()
Description
This is a windows-only function that provides a method of calling the Windows API ShellExecute() function. It can be used to call the appropriate program for a file with a given extension without knowing which program is responsible for loading it.
Prototype
shellexecute (
integer ,
string hwnd,
string operation,
string filename,
string params,
integer directory )
showcmd
Parameters
| Parameter | Default value | Type name | Description |
|---|---|---|---|
| hwnd | 0 | integer | |
| operation | open | string | |
| filename | None | string | |
| params | None | string | |
| directory | None | string | |
| showcmd | 1 | integer |


