This function executes a command line during a process. You can use ExecuteCommand to run a desktop application, but not a service.

This is a TM1® TurboIntegrator function, valid only in TurboIntegrator processes.

If you use ExecuteCommand to run an executable, the following conditions apply:

  • If the CommandLine argument specifies only the name of a file to be executed, a Windows server looks for the file in both the server database directory and in the directory where Tm1s.exe resides. A UNIX server looks for the file only in the server database directory.
  • If the CommandLine argument uses a relative path prefix, both the Windows and UNIX server attempt to locate the file in the server database directory only.
  • On either the Microsoft Windows or UNIX server, you can pass an absolute path to the CommandLine argument to execute a file in any location..


ExecuteCommand(CommandLine, Wait);




The command line you want to execute.


Indicates if the process should wait for the command to complete execution before continuing to the next process statement. An argument value of 0 causes the process to proceed to the next statement without waiting for the command line to execute. An argument value of 1 causes the process to wait for the command line to successfully execute before proceeding to the next statement.