ShellAPI

You can use this function for Optiva Workflows.

Purpose

Performs an action for a registered application. For example, opening a Microsoft WORD file or displaying a file in a browser.

Syntax


Dim variable As Integer = ShellAPI(Target)

Arguments

Part Type Description
Target String Path to the file or URL. If the target is an executable, then the parameters are passed to the executable.

Parameters vary according to the program.

Examples

In this example, the Yahoo home page opens.


Dim iOpen As Integer = ShellAPI("http://www.yahoo.com")

This example opens a Microsoft Word file; Open is the default action and no other action is specified.


Dim iReturncode As Integer
ShellAPI ("C:\Database Files\DBChanges.doc")