2019.2

Table Of Contents
ShowFlags
Integer value representing the flag to use during the execution of the command line. These
flags have an effect on the execution window opened by the ExecuteExternalProgram
procedure.
Flag Effect
0 Hide the execution window.
1 Display the window normally.
2 Display the window minimized.
3 Display the window maximized.
4 Makes the window visible and brings it to the top, but does not make it the active
window.
WaitForTerminate
A Boolean value that, if true, pauses the script until the command line has been fully
executed.
Examples
JavaScript
Watch.ExecuteExternalProgram("lpr -S 192.168.100.001 -P auto
c:\\myfile.ps", "c:\\", 0, true);
VBScript
Watch.ExecuteExternalProgram "lpr -S 192.168.100.001 -P auto
c:\myfile.ps", "c:\", 0, true
Python
Watch.ExecuteExternalProgram("lpr -S 192.168.100.001 -P auto
c:\\myfile.ps", "c:\\", 0, True)
Page 162