Open Document/Program

This action provides an interface with an external application and opens it using a command-line.

External applications can execute additional processing and provide results back to the Loftware. This action allows Loftware Automation to bind with any 3rd party software that can execute some additional data processing, or acquire data. External software can provide data response by saving it to a file, from where you can read it into variables.

[Note] Note

Loftware Automation runs as a service application and it can't interact with desktop, even if it runs with the privileges of the currently logged user. Microsoft prevented such interaction for security reasons.

This means that the Open Document/Program action in Loftware Automation can open only programs that run in the background.

You can feed the variable values to the program by listing them in the command line in square brackets.

C:\Applications\Processing.exe [variable1] [variable2]
UUID-5d28e5a1-7881-3792-3aca-f065586a3897.png
[Note] Note

If you use this action in Loftware solutions, it allows you to open web pages or create email messages directly from your forms. See section Creating hyperlinks and sending emails on form in Loftware user guide.

File group defines the file to be opened.

  • File name: location and file name of the file or application to be opened.

    The selected file name can be hard-coded, and the same file is going to be used every time. If only a file name without path is defined, the folder with Loftware Automation configuration file (.MISX) is used. You can use a relative reference to the file name, in which the folder with .MISX file is used as the root folder.

    Data source: enables variable file name. Select a variable that contains the path and/or file name or combine several variables that create the file name. For more information see section Using Compound Values in Loftware Automation User Guide.

    [Note] Note

    Use UNC syntax for network resources. For more information, see section Access to Network Shared Resources in Loftware Automation User Guide.

Execution Options group sets program opening details.

  • Wait for completion: specifies for action execution to wait for this action to be completed before continuing with the next scheduled action.

    [Tip] Tip

    Enable this option if the action that follows depends on the result of the external application.