Run External Program

Runs externally supplied program and waits for it to exit

Parameters

Exe file name - Full path or just exe name, in double quotations.

Additional message - Text sent to external program via command line, in double quotations - can be blank by entering “”.

For example, to run PowerShell directly from Simul8, use the following command:

Run External Program “C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe” , “”

Comments

  • If just the executable file name is supplied, Simul8 assumes the file path is where the Simul8 file is saved.
  • A file path should be specific and not contain a variable i.e. “%SystemRoot%\ system32\WindowsPowerShell\v1.0\powershell.exe” may not work.