Show TOC Start of Content Area

Background documentation Locate the document in its SAP Library structure

Use

Executes the specified OS command in a separate process.

The behavior of the command depends highly on the underlying operating system. Command exec terminates after the created process terminates.

Syntax

Syntax

exec [-dir|-d ...] [-env|-e ...] command

Options

 

-dir|-d

The working directory of the new process.

-env|-e

Environment variable settings as a comma-separated list of name value pairs.

Example: name1=value1,name2=value2

Arguments

 

command

The command and arguments to be executed enclosed in double quotes.

Description

Executes the specified OS command in a separate process.

Example

Opens the Web page http://www.sap.com in the standard Web browser. This example works only on Windows.

exec "cmd /c start http://www.sap.com"

End of Content Area