실행중인 프로세서검색 - Process.GetProcessesByName

교교 2014.06.14 13:47:44

      Dim processList() As Process

        processList = Process.GetProcessesByName("cmd")

        If IsProcessRunning("cmd") Then

              msgbox("   :")

        endif



   Public Function IsProcessRunning(ByVal name As String) As Boolean

        For Each clsProcess As Process In Process.GetProcesses()

            If clsProcess.ProcessName.StartsWith(name) Then

                Return True

            End If

        Next

        Return False

    End Function