| AppCtrlScript | |
| Help |
|
Applies to |
AppCtrlScript (Module: wmACScr1.dll) |
|
Group |
Other |
|
See also |
KILLTASK, FINDWINDOW, ACTIVATEWINDOW, CLOSEAPPS, KILLAPPS |
Searches the tasklist if an executable can be found that matches the given executable name. If so, the process id of the first matching task is returned otherwise the result will be 0.
Note: Under WinNT or Win2K you can also specify the path.
FINDTASK <VariableName>, <Exe>
FINDPROCESS <VariableName>, <Exe>
ISEXERUNNING <VariableName>, <Exe>
|
Part |
Description | |
| <VariableName> | Script variable where to store the found process id. | |
| <Exe> | Executable that should be found in the task list. | |
|
| ||
FINDTASK PrcID, "IExplore.exe"
'Will match also a possible MIExplore.exe but
'will run on Win9x also.
FINDTASK PrcID, "\IExplore.exe"
'Will match only IExplore.exe but
'will never match any task on Win9x.
'On WinNT machines you can also specify the complete path
FINDTASK PrcID, "C:\Winnt\Notepad.exe"