This article from InSource shows a couple options for launching the LogWin Utility from within a running Edge application.
- Author: Mario Meza
- Published: 06/16/2021
- Applies to: AVEVA InTouch Edge 2020 and above
For this example I added a Test Button to a screen.
Right Click and select Properties
In Object Properties for the button under the OnDown tab:
You can use EXEC which a built in scripting function to launch the utility from command line input or from a batch file.
In order for it to work in the VB script editor it must be prefaced with a ($)
The first example uses the EXEC function by passing command line Input
The second example uses the EXEC function to execute a batch file. (update the highlightedted path to reflect the path to the batch file in your environment.)
'Command Line Input:
$Exec("""" & $GetProductPath() & "Bin\LogWinExt.exe"" /dsip:localhost /dsport:1234""")
$Exec("CMD /C call C:\Users\dNichi\Desktop\logwin.cmd",0,0,"execHandle")
Batch File Contents:
start /b /d "c:\Program Files (x86)\AVEVA\AVEVA Edge 2020\Bin\" LogWinExt.exe /DSIP:192.168.0.51 /DSPORT:1234