Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

How to get all processes running on a machine

// Take a look at Process.GetProcesses(Environment.MachineName)

   1  
   2     Private Function KillAcrobat() As Boolean
   3        Dim pAcrobat As Process
   4        For Each pAcrobat In Process.GetProcesses(Environment.MachineName)
   5           If pAcrobat.ProcessName = "Acrobat" Then pAcrobat.Kill()
   6        Next
   7     End Function

You need to create an account or log in to post comments to this site.


Click here to browse all 5355 code snippets