Killing a process/program as easy as 1-2-3. No API, just as little piece of code.
Just sharing.
Enjoy!!
Submitted On | |
By | Uchiha Yueh |
Level | Beginner |
User Rating | 5.0 (40 globes from 8 users) |
Compatibility | VB 5.0, VB 6.0, VB Script, ASP (Active Server Pages) |
Category | Coding Standards |
World | Visual Basic |
Archive File |
Dim Process
For Each Process In GetObject("winmgmts:"). _
ExecQuery("select name from Win32_Process where name='notepad.exe'")
Process.Terminate (0)
Next