Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Schedule to properly exit a program at 5pm  (Read 10630 times)

0 Members and 1 Guest are viewing this topic.

Salmon Trout

  • Guest
Re: Schedule to properly exit a program at 5pm
« Reply #15 on: January 25, 2014, 04:55:23 PM »
The organisation sounds like what we call a "cowboy outfit" where I come from. especially from a financial governance point of view, and I am glad I don;'t have any shares in it.

ktobiano

    Topic Starter


    Greenhorn

    • Experience: Experienced
    • OS: Windows 7
    Re: Schedule to properly exit a program at 5pm
    « Reply #16 on: January 27, 2014, 07:44:45 AM »
    What I need is an automated way to properly shut QB at 5pm automatically regardless of why it needs to happen.

    Squashman



      Specialist
    • Thanked: 134
    • Experience: Experienced
    • OS: Other
    Re: Schedule to properly exit a program at 5pm
    « Reply #17 on: January 27, 2014, 09:10:35 AM »
    What I need is an automated way to properly shut QB at 5pm automatically regardless of why it needs to happen.
    The only real way to properly shut it down would to be at the computer.
    Using any other task to forcefully shutdown Quickbooks could have undesirable consequences.

    I asked earlier if you have remote access to your company's network.  If so, you could remote into the computer and just shut it down.

    The only other option I can think of is to use an AutoIt or AutoHotKey script.  These programs can work with the graphical interface of the running programming and shut it down correctly.

    ktobiano

      Topic Starter


      Greenhorn

      • Experience: Experienced
      • OS: Windows 7
      Re: Schedule to properly exit a program at 5pm
      « Reply #18 on: January 27, 2014, 10:30:26 AM »
      No I do not have remote access to my computer. 

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Schedule to properly exit a program at 5pm
      « Reply #19 on: January 27, 2014, 10:37:23 AM »
      What I need is an automated way to properly shut QB at 5pm automatically regardless of why it needs to happen.

      Did you see my post regarding task scheduler?
      I was trying to dereference Null Pointers before it was cool.

      ktobiano

        Topic Starter


        Greenhorn

        • Experience: Experienced
        • OS: Windows 7
        Re: Schedule to properly exit a program at 5pm
        « Reply #20 on: January 27, 2014, 12:58:57 PM »
        Yes.  Correct me if I'm wrong, but it is my understanding that Task Scheduler kills the exe file and doesn't actually shut down the program properly.  it's what I was told on another site...

        patio

        • Moderator


        • Genius
        • Maud' Dib
        • Thanked: 1769
          • Yes
        • Experience: Beginner
        • OS: Windows 7
        Re: Schedule to properly exit a program at 5pm
        « Reply #21 on: January 27, 2014, 01:23:39 PM »
        If you kill the .exe the program is shut down...thats how .exe's work..
        " Anyone who goes to a psychiatrist should have his head examined. "

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: Schedule to properly exit a program at 5pm
        « Reply #22 on: January 27, 2014, 01:26:45 PM »
        Yes.  Correct me if I'm wrong, but it is my understanding that Task Scheduler kills the exe file and doesn't actually shut down the program properly.  it's what I was told on another site...
        Yes, that is correct.

        The main difference is simply that the program won't have a chance to do any appropriate housekeeping when it is closed. In this case it would not be able to save changes.

        The only way to automate would be a VBScript, but that would require some knowledge of QuickBooks' Programming interfaces.
        I was trying to dereference Null Pointers before it was cool.

        Squashman



          Specialist
        • Thanked: 134
        • Experience: Experienced
        • OS: Other
        Re: Schedule to properly exit a program at 5pm
        « Reply #23 on: January 27, 2014, 01:31:02 PM »
        If you search on the AutoHotKey and AutoIt forums they have topics about closing Quickbooks.
        http://www.autohotkey.com/board/
        http://www.autoitscript.com/forum/

        ktobiano

          Topic Starter


          Greenhorn

          • Experience: Experienced
          • OS: Windows 7
          Re: Schedule to properly exit a program at 5pm
          « Reply #24 on: January 28, 2014, 07:28:47 AM »
          After much searching I was able to find a piece of freeware that works.  It's called System Scheduler.  Per the company:


          "With the free version, you can have the Window Watcher feature to run at 5pm, and set the Window Watcher to close the application. This does a normal close - not a Kill.

          With the Professional version there are more options for closing programs, in the Run Application - Advanced tab there is an option to close the application after x minutes. You can download a 30 day evaluation from our website if you want to give it a try."


          Thank you to all who tried to assist with what I needed.

          Squashman



            Specialist
          • Thanked: 134
          • Experience: Experienced
          • OS: Other
          Re: Schedule to properly exit a program at 5pm
          « Reply #25 on: January 28, 2014, 12:25:00 PM »
          After much searching I was able to find a piece of freeware that works.  It's called System Scheduler.  Per the company:


          "With the free version, you can have the Window Watcher feature to run at 5pm, and set the Window Watcher to close the application. This does a normal close - not a Kill.

          With the Professional version there are more options for closing programs, in the Run Application - Advanced tab there is an option to close the application after x minutes. You can download a 30 day evaluation from our website if you want to give it a try."


          Thank you to all who tried to assist with what I needed.
          Like I said.  AutoIt and AutoHotKey can do the same and gives you a little more flexibility with making sure that any changes you currently made are saved and backed up before you close the program.

          I haven't played much with VBscripts Sendkeys function but it could probably do it as well. 

          It is just a matter of how much control and flexibility you want.  Sounds like you wanted a precooked application to do it.  Hopefully System Watcher doesn't corrupt your Quickbooks database at all.

          HelpmePlease29



            Starter

            • Experience: Beginner
            • OS: Windows 7
            Re: Schedule to properly exit a program at 5pm
            « Reply #26 on: January 30, 2014, 09:18:20 AM »
            type this in RUN :
            shutdown -s -t [seconds left to shutdown]

            Replace the [seconds left to shutdown] with the time to shutdown.For eg: if yu want to shutdown pc at 5pm and now time is 3pm just calculate 2*3600 = 7200. Then type there 7200 and when timer reaches 0 it will force shutdown. If you wannt to cancel timer just type in RUN:
            shutdown /a

            Squashman



              Specialist
            • Thanked: 134
            • Experience: Experienced
            • OS: Other
            Re: Schedule to properly exit a program at 5pm
            « Reply #27 on: January 30, 2014, 11:45:06 AM »
            type this in RUN :
            shutdown -s -t [seconds left to shutdown]

            Replace the [seconds left to shutdown] with the time to shutdown.For eg: if yu want to shutdown pc at 5pm and now time is 3pm just calculate 2*3600 = 7200. Then type there 7200 and when timer reaches 0 it will force shutdown. If you wannt to cancel timer just type in RUN:
            shutdown /a
            If you happened to read all of the thread the OP does not want to shut down the computer.  He wanted to gracefully close the program.

            patio

            • Moderator


            • Genius
            • Maud' Dib
            • Thanked: 1769
              • Yes
            • Experience: Beginner
            • OS: Windows 7
            Re: Schedule to properly exit a program at 5pm
            « Reply #28 on: January 30, 2014, 02:31:48 PM »
            On top of that he stated he found a solution...
            " Anyone who goes to a psychiatrist should have his head examined. "