SHELL
SHELL(FileName AS STRING [, Directory AS STRING [, CmdShow AS INTEGER [, Wait AS BOOLEAN]]]) AS INTEGER
Runs the exe file <FileName> (short name or full path) with the working directory <Directory> (file path directory by default or current directory if short name).
The optional parameter <CmdShow> defines the show state of the main window:
- 0 = hidden
- 1 = normal active (default value)
- 2 = minimized (next window activated)
- 3 = maximized active
- 4 = normal, not active
- 7 = minimized not active
If the optional parameter <Wait> has the value TRUE, the function waits for the program to finish executing and returns the program exit code. If the optional parameter <Wait> has the value FALSE (default value), the function returns immediately as soon as the program is launched, with the value 0 if the program has been launched.