|
Watch.ExecuteExternalProgramCalls and executes an external program through a specified command line. The program's execution will be directed by the appropriate flags specified as this method's parameters. SyntaxWatch.ExecuteExternalProgram const CommandLine: WideString; const WorkingDir: WideString; ShowFlags: Integer;
const CommandLine: The command line to execute as a widestring. const WorkingDir: The working directory for the execution of the command line as a widestring. 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.
WaitForTerminate : A Boolean value that, if true, pauses the script until the command line has been fully executed. ExamplesVBScriptWatch.ExecuteExternalProgram "lpr -S 192.168.100.001 -P auto c:\myfile.ps", "c:\", 0, true JavaScriptWatch.ExecuteExternalProgram("lpr -S 192.168.100.001 -P auto c:\\myfile.ps", "c:\\", 0, true); PythonWatch.ExecuteExternalProgram("lpr -S 192.168.100.001 -P auto c:\\myfile.ps", "c:\\", 0, True) Perl$Watch->ExecuteExternalProgram("lpr -S 192.168.100.001 -P auto c:\myfile.ps", "c:\", 0, true); |
|