Run Macro

Use the Run macro to execute an external program.

Parameters:

 

  • Program File/Path: The path of the executable to be run. The full path must be specified or the executable must reside in a folder included in the user's path environmental variable. You can also specify a file name that has a predefined association to a program (for example, a .pdf document).
  • Command Line: Any command-line arguments to be passed to the executable.
  • Wait for Program to Exit: A Boolean indicating if Encompass360 should suspend itself until the executed program terminates.

 

Return Value:

 

None

 

Example:

 

Macro.Run("notepad.exe", "c:\temp\somefile.txt", True)