Skip to main content

Get-App-Running-Status

Command Description

Get the running status of the application. If the application is still running, return true. If the application has exited, return false

Command Prototype

bRet=App.GetStatus(sName)

Parameter Description

ParameterRequiredTypeDefaultDescription
sNameTruestring""App process name or process PID

return

bRet,The variable used to save the output of the command.

Demo

/********************************Get application running status************** ******************** 
Command prototype:
bRet=App.GetStatus("")
Input parameters:
sName--application process name or process PID
Outgoing parameters:
bRet--the result after the command is run
********************************************************************************/
Dim sName = "Chrome.exe"
bRet=App.GetStatus(sName)
TracePrint(bRet)