SIMPOL Documentation

Chapter 83. shellexecute

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 hwnd, string operation, string filename, string params, string directory, integer showcmd )

Parameters

ParameterDefault valueType nameDescription
hwnd0integer
operationopenstring
filenameNonestring
paramsNonestring
directoryNonestring
showcmd1integer