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. The Lounge
  3. Shutting down apps

Shutting down apps

Scheduled Pinned Locked Moved The Lounge
10 Posts 5 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Is there a way, applications can be shutdown at a certain time (as they can be started using the task scheduler). I looked up everything in task scheduler and there is nothing in there. I use Task scheduler to start certain applications at 7:00 am and is looking for something to shut them down at 9:00 pm. Thanks Thomas

    P N 2 Replies Last reply
    0
    • L Lost User

      Is there a way, applications can be shutdown at a certain time (as they can be started using the task scheduler). I looked up everything in task scheduler and there is nothing in there. I use Task scheduler to start certain applications at 7:00 am and is looking for something to shut them down at 9:00 pm. Thanks Thomas

      P Offline
      P Offline
      PJ Arends
      wrote on last edited by
      #2

      Set the max run time using the task scheduler. On the 'Settings' page, 'Stop Task after' check box. See also ITask::SetMaxRunTime in MSDN. HTH:) --- CPUA 0x5041 Sonork 100.11743 Chicken Little It may be that your sole purpose in life is simply to serve as a warning to others.

      L 2 Replies Last reply
      0
      • P PJ Arends

        Set the max run time using the task scheduler. On the 'Settings' page, 'Stop Task after' check box. See also ITask::SetMaxRunTime in MSDN. HTH:) --- CPUA 0x5041 Sonork 100.11743 Chicken Little It may be that your sole purpose in life is simply to serve as a warning to others.

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

        It does not work on the applications that I want to start automatically. They are all console applications and are started from a batch file. Probably they are not sutting down because they are started from the batch file. Thomas

        1 Reply Last reply
        0
        • P PJ Arends

          Set the max run time using the task scheduler. On the 'Settings' page, 'Stop Task after' check box. See also ITask::SetMaxRunTime in MSDN. HTH:) --- CPUA 0x5041 Sonork 100.11743 Chicken Little It may be that your sole purpose in life is simply to serve as a warning to others.

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

          It works when the task is scheduled directly rather than through a batch file. :) Btw, What is HTH? Thomas

          D P 2 Replies Last reply
          0
          • L Lost User

            It works when the task is scheduled directly rather than through a batch file. :) Btw, What is HTH? Thomas

            D Offline
            D Offline
            David Wulff
            wrote on last edited by
            #5

            Thomas George wrote: Btw, What is HTH? Happy To Help? ____________________ David Wulff I watch how the moon sits in the sky On a dark night shining with the light from the sun The sun doesn't give light to the moon Assuming the moon's going to owe it one It makes me think of how you act to me You do favours and then rapidly You just turn around and start asking me about Things you want back from me - Linkin Park

            T 1 Reply Last reply
            0
            • L Lost User

              It works when the task is scheduled directly rather than through a batch file. :) Btw, What is HTH? Thomas

              P Offline
              P Offline
              PJ Arends
              wrote on last edited by
              #6

              Thomas George wrote: Btw, What is HTH Hope That Helps --- CPUA 0x5041 Sonork 100.11743 Chicken Little It may be that your sole purpose in life is simply to serve as a warning to others.

              D 1 Reply Last reply
              0
              • P PJ Arends

                Thomas George wrote: Btw, What is HTH Hope That Helps --- CPUA 0x5041 Sonork 100.11743 Chicken Little It may be that your sole purpose in life is simply to serve as a warning to others.

                D Offline
                D Offline
                David Wulff
                wrote on last edited by
                #7

                D'oh - still, I wasn't far off. ____________________ David Wulff I watch how the moon sits in the sky On a dark night shining with the light from the sun The sun doesn't give light to the moon Assuming the moon's going to owe it one It makes me think of how you act to me You do favours and then rapidly You just turn around and start asking me about Things you want back from me - Linkin Park

                T 1 Reply Last reply
                0
                • D David Wulff

                  Thomas George wrote: Btw, What is HTH? Happy To Help? ____________________ David Wulff I watch how the moon sits in the sky On a dark night shining with the light from the sun The sun doesn't give light to the moon Assuming the moon's going to owe it one It makes me think of how you act to me You do favours and then rapidly You just turn around and start asking me about Things you want back from me - Linkin Park

                  T Offline
                  T Offline
                  Tom Archer
                  wrote on last edited by
                  #8

                  I've always used it to represent "Hope this helps" Cheers, Tom Archer Author, Inside C#

                  1 Reply Last reply
                  0
                  • D David Wulff

                    D'oh - still, I wasn't far off. ____________________ David Wulff I watch how the moon sits in the sky On a dark night shining with the light from the sun The sun doesn't give light to the moon Assuming the moon's going to owe it one It makes me think of how you act to me You do favours and then rapidly You just turn around and start asking me about Things you want back from me - Linkin Park

                    T Offline
                    T Offline
                    Tom Archer
                    wrote on last edited by
                    #9

                    Oops! Didn't realize that PJ had already told you. Cheers, Tom Archer Author, Inside C#

                    1 Reply Last reply
                    0
                    • L Lost User

                      Is there a way, applications can be shutdown at a certain time (as they can be started using the task scheduler). I looked up everything in task scheduler and there is nothing in there. I use Task scheduler to start certain applications at 7:00 am and is looking for something to shut them down at 9:00 pm. Thanks Thomas

                      N Offline
                      N Offline
                      Neville Franks
                      wrote on last edited by
                      #10

                      You could write a small app that found the console window then its process handle and did a terminate thread (more or less). As long as the console app didn't barf at being terminated in this way, then this would work. Neville Franks, Author of ED for Windows. www.getsoft.com

                      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