Skip to main content

Close-Application

Command Description

Force an app to stop running (kill process)

Command Prototype

App.Kill(sName)

Parameter Description

ParameterRequiredTypeDefaultDescription
sNameTruestring""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)