Computer Hope

Software => Computer software => Topic started by: ktobiano on January 24, 2014, 07:33:20 AM

Title: Schedule to properly exit a program at 5pm
Post by: ktobiano on January 24, 2014, 07:33:20 AM
I work in the company QuickBooks file throughout the day and before I leave I need to close out of the program.  There are several reasons why I may not make it back to my desk to do this at the end of my day so the program stays open and updates can't happen.  Then I get yelled at.  I'm trying to find a way to automatically close just QuickBooks at a specific time every day.

Please help! 
Title: Re: Schedule to properly exit a program at 5pm
Post by: Salmon Trout on January 24, 2014, 11:17:01 AM
With issues of this type, I feel that a strictly technical, whip-up-a-script approach is not always the best. At my job I have to shut down my PC at the end of the day. (They have recently introduced a thing called "Night Watchman" which shuts down all the workstations on the network at 7 PM unless you tell the IT people you need to be excluded, and since our site building closes at that time, we will never need to do that). I have to make time to shut down all my running apps and shut down the PC. That is part of the time management I am expected to do. Maybe you need to speak to your boss, or whoever it is that "yells" at you, and mention that shutting down Quickbooks at the end of the day is part of your work, and that other things are making this difficult or impossible. Does your employer allow you to leave a PC on all night?

Title: Re: Schedule to properly exit a program at 5pm
Post by: patio on January 24, 2014, 03:55:52 PM
 If i was getting yelled at for not shutting down properly at the end of the day i'd make it a point to do that before i left work...
There are ways to automate this but you should really be doing what they are paying you for...no excuses.
Title: Re: Schedule to properly exit a program at 5pm
Post by: ktobiano on January 24, 2014, 04:02:32 PM
Finding a way to auto shut down (we can auto start why not auto exit?) is what I need.  This is not about work protocol.  I worked that route to death.  I just need to know how to get the program to shut down at night if I can't get back to my office to do it. When I say can't get back to the office it literally means I'm at a jobsite far far away.  The accountant yells.  I've given her my password but she usually forgets to do it.  I'm not "in trouble" but I don't like being the source of frustration for her.  I can do that all on my own without any help lol!

(Comp is password protected & IT dept requires we leave our comps on all night.)

Any freewares that will do assist?

The ones I found were crap.

I just saw the second post.  Mind your own business.  I'm working jobsites in the field doing exactly what the *censored* I'm getting paid for so stuff it.  Don't judge unless you have ALL the flipping details.  I'm not posting my whole freaking story on this *censored* board.  If you can't answer the question don't bother posting.  You wanna judge people, go play on Facebook.
Title: Re: Schedule to properly exit a program at 5pm
Post by: Salmon Trout on January 24, 2014, 04:14:42 PM
Don't judge unless you have ALL the flipping details.  I'm not posting my whole freaking story on this *censored* board.  If you can't answer the question don't bother posting.  You wanna judge people, go play on Facebook.

Posting like this is not the way to win friends, and get helpful answers, on Computerhope. I think you just lost between 97 and 99 of your 100 CH lives. Maybe more.




Title: Re: Schedule to properly exit a program at 5pm
Post by: Salmon Trout on January 24, 2014, 04:18:08 PM
I just saw the second post.

Mine, I believe.

Quote
Don't judge unless you have ALL the flipping details.  I'm not posting my whole freaking story on this *censored* board.  If you can't answer the question don't bother posting.  You wanna judge people, go play on Facebook.

Way to post like a d*ck. Good luck in your next job (if you get one).


Title: Re: Schedule to properly exit a program at 5pm
Post by: Squashman on January 24, 2014, 04:25:14 PM
do you not have remote access to you network?
Title: Re: Schedule to properly exit a program at 5pm
Post by: BC_Programmer on January 24, 2014, 04:33:48 PM
You can use task scheduler to create a new task, schedule it to run every day at 5PM, and for the command you can enter "cmd /c tskill quickbooks". Be sure to replace quickbooks with the base name of the quickbooks program. I'm <guessing> it's probably quickbooks.exe so I used quickbooks, but I don't actually know).

You can optionally set it to run the command (which will close all instances of quickbooks) say every 2 hours, but also require that your system had been idle (eg. no user interaction) for say an hour beforehand, or something. Task scheduler is quite flexible.



Title: Re: Schedule to properly exit a program at 5pm
Post by: BC_Programmer on January 24, 2014, 04:43:53 PM
Mine, I believe.
First reply was yours, Patio's reply was the second.

I tend to agree with the sentiment. The type of stuff the OP wants is practically what computers are for. If it's part if his job, it is part of the computers job to make it easier.
Title: Re: Schedule to properly exit a program at 5pm
Post by: patio on January 24, 2014, 05:02:47 PM
Fire the accountant...sounds like she's the issue...
Title: Re: Schedule to properly exit a program at 5pm
Post by: soybean on January 25, 2014, 12:06:23 PM
I work in the company QuickBooks file throughout the day and before I leave I need to close out of the program.  There are several reasons why I may not make it back to my desk to do this at the end of my day so the program stays open and updates can't happen.  Then I get yelled at.  I'm trying to find a way to automatically close just QuickBooks at a specific time every day.
I think the common sense procedure would be for you to shut down QuickBooks when you are finished using it.  If another authorized user needs to use it when you're not there using it, then that person should have a QuickBooks password and just launch QuickBooks to do what they need to do and then close it when finished.  If this is not acceptable to the accountant, then she is not using common sense.
Title: Re: Schedule to properly exit a program at 5pm
Post by: BC_Programmer on January 25, 2014, 12:19:24 PM
I think the common sense procedure would be for you to shut down QuickBooks when you are finished using it.  If another authorized user needs to use it when you're not there using it, then that person should have a QuickBooks password and just launch QuickBooks to do what they need to do and then close it when finished.  If this is not acceptable to the accountant, then she is not using common sense.

Based on the post I am fairly sure the quickbooks file being edited is on a network drive, quickbooks, as a program, locks files it opens on network shares, which means that the file is inaccessible for editing (if not viewing at all) to others when they have it open in quickbooks.
Title: Re: Schedule to properly exit a program at 5pm
Post by: Salmon Trout on January 25, 2014, 12:29:43 PM
I work in a finance office. Good practice is to exit the app if you are going away from your workstation, let alone the office, and your instance of the app is locking files.
Title: Re: Schedule to properly exit a program at 5pm
Post by: Salmon Trout on January 25, 2014, 01:57:24 PM
I've given her my password

This is bad. It is forbidden where I work, and if it was found out that anyone had done this, both people would be in the disciplinary procedure, and we would have to report is as a security incident.
Title: Re: Schedule to properly exit a program at 5pm
Post by: Squashman on January 25, 2014, 02:36:28 PM
Maybe setting up Quickbooks for Multi-user mode would be the best option.
Title: Re: Schedule to properly exit a program at 5pm
Post by: Salmon Trout 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.
Title: Re: Schedule to properly exit a program at 5pm
Post by: ktobiano 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.
Title: Re: Schedule to properly exit a program at 5pm
Post by: Squashman 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.
Title: Re: Schedule to properly exit a program at 5pm
Post by: ktobiano on January 27, 2014, 10:30:26 AM
No I do not have remote access to my computer. 
Title: Re: Schedule to properly exit a program at 5pm
Post by: BC_Programmer 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?
Title: Re: Schedule to properly exit a program at 5pm
Post by: ktobiano 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...
Title: Re: Schedule to properly exit a program at 5pm
Post by: patio on January 27, 2014, 01:23:39 PM
If you kill the .exe the program is shut down...thats how .exe's work..
Title: Re: Schedule to properly exit a program at 5pm
Post by: BC_Programmer 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.
Title: Re: Schedule to properly exit a program at 5pm
Post by: Squashman 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/
Title: Re: Schedule to properly exit a program at 5pm
Post by: ktobiano 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.
Title: Re: Schedule to properly exit a program at 5pm
Post by: Squashman 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.
Title: Re: Schedule to properly exit a program at 5pm
Post by: HelpmePlease29 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
Title: Re: Schedule to properly exit a program at 5pm
Post by: Squashman 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.
Title: Re: Schedule to properly exit a program at 5pm
Post by: patio on January 30, 2014, 02:31:48 PM
On top of that he stated he found a solution...