Executes the specified command on the machine on which the Open Agent is hosted.
eReturn = Execute (commandLine [, executionMode])
| Variable | Description |
|---|---|
| eReturn | The return value of the command. ExecutionResult. |
| commandLine | The command to execute. String. |
| executionMode | Optional: An option specified with one of the constants defined for the ExecutionMode enumerated data type. Defaults to WaitUntilFinished if not specified. ExecutionMode. |
Agent.SystemFunctions.Execute("mkdir c:\mf_community1")
Agent.SystemFunctions.Execute("calc.exe", SilkTest.Ntf.SystemFunctions.ExecutionMode.ContinueRunning)