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
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. automatic resurrection of the process when task manager kill it

automatic resurrection of the process when task manager kill it

Scheduled Pinned Locked Moved IT & Infrastructure
question
6 Posts 6 Posters 0 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.
  • A Offline
    A Offline
    aka_scoe
    wrote on last edited by
    #1

    1. if user ends process from the task manager. how does one automatically restart it without manual interaction?

    P V D E H 5 Replies Last reply
    0
    • A aka_scoe

      1. if user ends process from the task manager. how does one automatically restart it without manual interaction?

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      aka_scoe wrote:

      1. if user ends process from the task manager. how does one automatically restart it without manual interaction?

      Why would you want to do this? If the user has killed it, they have killed it for a reason and they won't look kindly on your application if it restarts itself.

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

      My blog | My articles | MoXAML PowerToys | Onyx

      1 Reply Last reply
      0
      • A aka_scoe

        1. if user ends process from the task manager. how does one automatically restart it without manual interaction?

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        aka_scoe wrote:

        how does one automatically restart it without manual interaction?

        I don't think you would get replies to this query. The Task Manager was directed to end the life of the process because it was behaving truant. It would be ridiculous to give it a chance to revive itself and play the fool again, thus bestowing possibly a catastropic failure on the host system.

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

        1 Reply Last reply
        0
        • A aka_scoe

          1. if user ends process from the task manager. how does one automatically restart it without manual interaction?

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          There's almost never a good reason to do this. But, you'd have to have a second application running and monitoring the Process list. When the app disappears, you relaunch it.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008
          But no longer in 2009...

          1 Reply Last reply
          0
          • A aka_scoe

            1. if user ends process from the task manager. how does one automatically restart it without manual interaction?

            E Offline
            E Offline
            Elsie
            wrote on last edited by
            #5

            If your application is a Windows service, then you can specify to restart the service (also can specify an interval of time), in case of failure/stop in its recovery properties. Also advanced option on Action on First failure, Second Failure etc are available.... But only if your app is an "Windows Service"

            1 Reply Last reply
            0
            • A aka_scoe

              1. if user ends process from the task manager. how does one automatically restart it without manual interaction?

              H Offline
              H Offline
              Hans Dietrich
              wrote on last edited by
              #6

              Use the Windows Scheduler. This is what the Google Updater does.

              Best wishes, Hans


              [Hans Dietrich Software]

              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