Shell Function

  1. Shell ( app [, style])

Runs an executable program.

The shell function has two parameters. The first one, app is the name of the program to be executed. The name of the program in app must include a .PIF, .COM, .BAT, or .EXE file extension or an error will occur. The second argument, style is the number corresponding to the style of the window . It is also optional and if omitted the program is opened minimized with focus.

Window styles:

  1. Normal with focus 1,5,9

    Minimized with focus (default) 2

    Maximized with focus 3

    normal without focus 4,8

    minimized without focus 6,7

Return value: ID, the task ID of the started program.

More:

Example: