|
|
|
|
|
CmdKill (Function) In french: CmdTermine Forces the termination of a running executable associated with a command. New in version 2025Note: This function is only available from version 2025 Update 1.
MyCommandToExecute is Command
MyCommandToExecute.Executable = "C:\Path\MyProgram.exe"
MyCommandToExecute.Arguments = "Argument1"
MyCommandToExecute.Streams = cmdStandardInput + cmdStandardOutput
CmdAddArgument(MyCommandToExecute, "Argument2")
CmdAddOption(MyCommandToExecute, "opt1", "val1")
CmdExecute(MyCommandToExecute, False)
...
IF CmdIsRunning(MyCommandToExecute) = True THEN
CmdKill(MyCommandToExecute)
END
Syntax
CmdKill(<Command manipulated>)
<Command manipulated>: Command variable Name of the Command variable corresponding to the command to be manipulated. Remarks You can force the termination of the executable associated with a command via the AutoTerminate property of a variable of type Command. If the AutoTerminate property is set to False, you can: - determine if the executable is currently running, with CmdIsRunning.
- force the termination of the executable, with CmdKill.
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|