Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
sApp="notepad.exe"
set svc=getobject("winmgmts:root\cimv2")
set cProcess=svc.execQuery ("select * from win32_process")
for each oProcess in cProcess
if Instr(1,oProcess.caption,sApp,1)>0 then
wscript.echo "you find one"
lRet=oProcess.terminate()
if lRet<>0 then
wscript.echo "Failed to terminate the process."
else
wscript.echo "Process successfully terminated."
end if
end if
next
set cProcess=nothing