Advertisement
5_2007-2008 Coding Standards #192020

Kill process as easy as 1-2-3

Killing a process/program as easy as 1-2-3. No API, just as little piece of code. Just sharing. Enjoy!!

AI

AI 요약: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

소스 코드
original-source
Dim Process
For Each Process In GetObject("winmgmts:"). _
   ExecQuery("select name from Win32_Process where name='notepad.exe'")
  
  Process.Terminate (0)
Next
원본 댓글 (3)
Wayback Machine에서 복구됨