Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to check process status in task manager

How to check process status in task manager

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
6 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sohaib_a
    wrote on last edited by
    #1

    I want to create a windows service that checks the status of a task in task manager.If it isnt running then restart the application.ie; it is 'Not responding' then restart. However I dont know how to get the status of the task.Will getprocessbyname() method work for this? Or is there a better way?

    W 1 Reply Last reply
    0
    • S sohaib_a

      I want to create a windows service that checks the status of a task in task manager.If it isnt running then restart the application.ie; it is 'Not responding' then restart. However I dont know how to get the status of the task.Will getprocessbyname() method work for this? Or is there a better way?

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      You can use Process.GetProcesses Method[^] to get all processes and then investigate Responding [^]property.

      The need to optimize rises from a bad design.My articles[^]

      L 1 Reply Last reply
      0
      • W Wendelius

        You can use Process.GetProcesses Method[^] to get all processes and then investigate Responding [^]property.

        The need to optimize rises from a bad design.My articles[^]

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Mika Wendelius wrote:

        You can use Process.GetProcesses Method[^] to get all processes and then investigate Responding [^]property.

        Beat me to it!

        W 1 Reply Last reply
        0
        • L Lost User

          Mika Wendelius wrote:

          You can use Process.GetProcesses Method[^] to get all processes and then investigate Responding [^]property.

          Beat me to it!

          W Offline
          W Offline
          Wendelius
          wrote on last edited by
          #4

          I guess the server I was directed to, was having a lower workload thus performing faster. :)

          The need to optimize rises from a bad design.My articles[^]

          L 1 Reply Last reply
          0
          • W Wendelius

            I guess the server I was directed to, was having a lower workload thus performing faster. :)

            The need to optimize rises from a bad design.My articles[^]

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            That's like the third time in 3 days I was beaten to it! Once was by a few seconds, I hate it! Grrrrr :mad:

            W 1 Reply Last reply
            0
            • L Lost User

              That's like the third time in 3 days I was beaten to it! Once was by a few seconds, I hate it! Grrrrr :mad:

              W Offline
              W Offline
              Wendelius
              wrote on last edited by
              #6

              So doesn't it mean that if you've posted, say 30 messages during last 3 days, you have replied just before someone else in 90% of cases and only in 10% someone else has done that. That wouldn't be bad at all. :)

              The need to optimize rises from a bad design.My articles[^]

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups