Executes the specified command on the machine on which the Open Agent is hosted.
C#
eReturn = Execute (commandLine [, executionMode]);
VB
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. |
// C# code Agent.SystemFunctions.Execute("mkdir c:\mf_community1");
'VB code Agent.SystemFunctions.Execute("mkdir c:\mf_community1")
// C# code Agent.SystemFunctions.Execute("calc.exe", SilkTest.Ntf.SystemFunctions.ExecutionMode.ContinueRunning);
'VB code Agent.SystemFunctions.Execute("calc.exe", SilkTest.Ntf.SystemFunctions.ExecutionMode.ContinueRunning)