AppCtrlScript

MAY Computer

Help

KILLTASK

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

Other

See also  

FINDTASK, FINDWINDOW, KILLAPPS, CLOSEAPPS

Determines if the specified executable is currently running. If so, it's process id is returned otherwise the result will be 0.

Important information on specifying executable names see FINDTASK .

Syntax

KILLTASK <VariableName>, <Task> 
KILLPROCESS
<VariableName>, <Task>

Part

Description

<VariableName> Script variable where to store the found process id.
<Task> Process id or executable that should be found in the task list.

 

Samples

KILLPROCESS "IExplore.exe"
'The line above has the same effect as the lines below
FINDPROCESS PrcID, "IExplore.exe"
KILLPROCESS %SCR.PrcID%