PDA

View Full Version : Kill aplication



ddimatteo
12-02-2005, 10:17 AM
Is there a way to kill an aplication launched
with the Exec Method.
Something like
Dim WshShell, oprog
Set WshShell = CreateObject("WScript.Shell")
Set oprog = WshShell.Exec("C:\Archivos de programa\Internet Explorer\iexplore.exe c:\a\vbs\seguridad\aa.mht")
WshShell.AppActivate oprog.ProcessID

and after some other things I want to
kill (close) that prog
Can it be done ???
Thanks
Dima

Brf
12-02-2005, 11:07 AM
How about

oprog.terminate()

Wogboy222
01-31-2006, 11:20 PM
Hey, I want to create a script, that records the
details on the users, who run a certin program..

Can it be done?

<font color=blue> Windows is a huge hole. How many times </font color=blue>
<font color=blue> you try to fix it up, it will alway's be full of </font color=blue>
<font color=blue> holes....</font color=blue>