Shell

concerns

The Shell function runs an application that is linked to the file specified in Path. If the function was successfully performed, it returns the process ID of the started application.

 

Syntax

Shell(Path [, Parameter] [, Directory] [, Verb] [, WindowStyle] [, Wait])

Return value

Type

Description

Long

Process ID of the started program

Parameter

Use

Name

Type

Passing

Description

Required

Path

String

ByVal

Path to the executable file

Optional

Parameter

String

ByVal

Command line parameters of the application

Optional

Directory

String

ByVal

The working directory of the application to be started

Optional

Verb

String

ByVal

The embodiment of the application to be started. If not specified, verb contains the value „open“

Optional

WindowStyle

Long

ByVal

Display style of the 1st window of the application to be started

Optional

Wait

Boolean

ByVal

Waiting for the program to finish; Default is False