Skip to main content
Skip table of contents

f$CreateProcess


f$CreateProcess

Execute another system application. Arguments can be entered additionally if the target application allows that. Furthermore, a list of environment variables as well as a default directory for the application can also be entered.

The decision tables continue to be executed without waiting for the application to end - the function f$WaitExecute can be used for the latter.

There are multiple opportunities to enter the program and its options. If the application is entered in the program parameter, it must either have a path entry or the program must be located in the current directory. If using this parameter, you must note that the program options have to begin with a space. The program parameter may also be entered as an empty string. In this instance, the application must be entered in the program options. Then the program is searched for in the system directories if a path entry has not been made.

The following combinations are possible:

PID = f$createprocess(’’,’notepad.exe c:\\temp\\brief.txt’,’’,’’)

Please note that, when entering a path in the file name, the character "\" must be entered twice ("\\").

Environment variables are set in the syntax: name=value. If multiple environment variables are to be entered, they must be separated with a line break.
Environment= ’TDV_DATA=C:\\EPOS\\DATA’ + Zeilenumbruch + ’ORACLE_SID=DB_ORA’

Syntax:

PID = f$Createprocess(Program,Commandline,Environment,Directory)

 

Argument

Type

Meaning

 

Program

String

Program name including path entry

 

Commandline

String

Arguments

 

Environment

String

Environment variables

 

Directory

String

Work directory for the process

Result:

Integer

Process ID for the process started or –1 if the process cannot be started.

Example:

PID = f$createprocess(’’,’notepad.exe c:\\temp\\brief.txt’,’’,’’)

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.