Maybe using SendKeys. Save the following as Closer.vbs
:
set shell = createobject("wscript.shell")
rcSuccess = shell.AppActivate("title of window to activate")
if rcSuccess = 1 then shell.sendkeys "%{F4}"
Then make a batch file called CloseApp.BAT
containing
REM Close some App
cscript /nologo closer.vbs
And run using:
CloseApp
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…