RunProgram()

Syntax

Result = RunProgram(FileName$ [, Parameter$, WorkingDirectory$ [, Flags]])
Description
Launches an external program. The 'FileName$' should include its path. If the returned 'Result' is 0, the command can't be launched.

Flags is optional and can be a combination of the following values:
#PB_RunProgram_Wait: Wait until the launched program quits
#PB_RunProgram_Hide: Launch the program in invisible mode

To use several option at once, you have to use the '|' (OR) operator. Example for invisible program and wait until it quits:

RunProgram(FileName$, Parameter$, "", #PB_RunProgram_Wait | #PB_RunProgram_Hide)

Supported OS

All

<- Red() - Misc Index