Skip to main content
Skip table of contents

f$Execute (f$Ausführen)


f$Execute (f$Ausführen)

Execute another system application under Microsoft Windows. The application can be executed in two ways:

  • Through a document. Only the document name is entered for this. The appropriate program must be indicated via a file extension. The advantage of this is that the path and name of the executing program do not have to be entered.

  • Via a program. The full program name (including path) is entered for this. The document can also be entered.

The application is executed asynchronously, the decision tables continue to be executed without waiting for the application to end. The execution stops with the function f$WaitExecute, however documents cannot be directly entered there.

This function can be used, for example, to display additional information or explanations for a dialog, e.g. an image, construction sketch or text document.

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

Syntax:

Status = f$Execute( Command, File [, Parameter [, Mode]] )

 

Argument

Type

Meaning

 

Command

String

One of the key words:
"open": the file is opened
"print": the file is printed

 

File

String

File (or program) to be called

 

Parameter

String

Argument to the application (optional)
(only if "file" is an executable program)

 

Mode

Integer

Processing mode:
1: normal view (standard setting)
2: start as icons
3: full screen usage
4: normal view, though not active
5: presentation in current size and position
7: start as icons. The application is not active
8: presentation in current size and position. The application is not active

Result:

Integer

Error status (-1=successful)

Examples:

Status = f$Execute( 'print', 'Text.txt' )
→ the file "Text.txt" is printed with the program linked to the extension "txt", e.g. with the program "Notepad".

Status = f$Execute( 'open', 'c:\\windows\\notepad.exe', 'Text.txt' )
→ the program "Notepad" is opened with the file "Text.txt".

JavaScript errors detected

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

If this problem persists, please contact our support.