TM1 Function for TI, ExecuteCommand

Executes a command line.

What is the ExecuteCommand function?

ExecuteCommand executes a command line.

Where can the ExecuteCommand function be used?


What is the syntax for ExecuteCommand?

ExecuteCommand(CommandLine, Wait)​;

CommandLine = The command line that is to be executed.​
Wait = takes value 1 or 0, which indicates whether the process should wait for the command to finish execution and continue to the next statement in the process or continue without respectively.

A demonstration on how to use ExecuteCommand

Use ExecuteCommand to archive a file and rename it with the current timestamp.