ShellAPI2
You can use this function for Optiva Workflows.
Purpose
ShellAPI2 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 = ShellAPI2(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. |
Example
The below is the example of the script used to create ShellAPI2.
Option Strict Off
imports System
imports System.Diagnostics
Class ActionScript
Inherits FcProcFuncSetEventWF
Function wf_start() As Long
Workflow.ShellAPI("http://usfrvqas19c/FsWebReports/launch.aspx?p1=BoatInfo.xml&p2=asdf&p3=PDF&p4=C:\inetpub\\wwwroot\FsWebReports\Source\BoatInfo2008.rpt")
End Function
End Class