Close-Application
Command Description
Force an app to stop running (kill process)
Command Prototype
App.Kill(sName)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
sName | True | string | "" | App process name or process PID |
Demo
/************************************Close application************** *********************
Command Prototype
App.Kill("")
Input parameters:
sName--application process name or process PID
Outgoing parameters:
None
****************************************************************************/
Dim sName = "YoudaoDict.exe"
App.Kill(sName)