bool wb_exec (string command [, string param])
Opens or executes a command. The string passed to this function can be one of the following:
Optional parameters can be passed to the command or application through the variable param.
The function wb_exec() is useful for running a WinBinder script as a separate process. If command has a .phpw extension, this will be detected by the function and processed adequately. The following non-case-sensitive modifiers can be used as param:
Param |
Meaningx |
---|---|
"" or empty |
Run the script in the same mode as the calling process |
"w" or "windowed" |
Run the script in windowed mode (release mode) |
"c" or "console" |
Run the script in console mode (debug mode) |
"o" or "open" |
Ignore the .phpw extension and treat command as any other string, shell-executing it ¹ |
¹ Usually, shell-executing a .phpw script will usually run it in windowed mode, unless the user has changed the .phpw association in Windows.
NOTE: Only .phpw is considered to be a WinBinder script. This
means the .php extension will not be detected by wb_exec() and
will be shell-executed normally.
|
|