Terminate!
Utile se si deve terminare una serie di istanze della stessa applicazione:
Dim obj As Object
For Each obj In GetObject("winmgmts:").ExecQuery("SELECT * FROM Win32_Process WHERE Name='Calc.exe'")
obj.Terminate()
Next
Dim obj As Object
For Each obj In GetObject("winmgmts:").ExecQuery("SELECT * FROM Win32_Process WHERE Name='Calc.exe'")
obj.Terminate()
Next
Commenti
Posta un commento