Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

How To automate a application

how to automate a application in microsoft windows 7 in term of  for example if it is closed it runs automatically again without user intervention..how to do that.....
0
vagabond1214
Asked:
vagabond1214
  • 7
  • 7
1 Solution
 
Paul MacDonaldDirector, Information SystemsCommented:
One easy way would be to have a scheduled task that started the application if it's not already running, then have the task check periodically to see if it needs to start.
0
 
vagabond1214Author Commented:
but how would i make up a script which will keep on checking application not running and then will start the application ????


thanks
0
 
Paul MacDonaldDirector, Information SystemsCommented:
Create a scheduled task that launched the application, if it's not already running.  Set the scheduled task to run every hour (or 30 minutes, or 5 minutes or whatever).  Then, if the application is shut down, the scheduled task will start it back up again.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
vagabond1214Author Commented:
but if the application is not shutdown then  iwould it not be running two instances of applications ?....actually i happened to experience a windows 7 embedded operating system on touchsystem which was being used to access a website...so every time that webpage would remain open but the moments it is closed it is initiated again within 2 or 3 seconds................i don't how does it come to know that webpage is closed and then it opens up the program................
0
 
Paul MacDonaldDirector, Information SystemsCommented:
You can specify the scheduled task run only if it's not running already.
0
 
Paul MacDonaldDirector, Information SystemsCommented:
You can specify the scheduled task run only if it's not running already.  

As for the browser you mention, it's not possible for me to know how they accomplished that behavior.
0
 
vagabond1214Author Commented:
task scheduler only goes down for 1 mints time duration to open up the program if its not running already
but what if we want to specify the time in seconds..i tried but does not let me do it
0
 
Paul MacDonaldDirector, Information SystemsCommented:
Sorry, can't help you.  Do you really think you need to check every few seconds to see if an application is running?  I presume so...
0
 
vagabond1214Author Commented:
YES actually we have a application running at remote locations and people use it to punch in and out to record their time of work ..on the basis of that they r paid so we want to keep it open every time possible
if i  get the option of 5 second time duration that would be awesome...
0
 
Paul MacDonaldDirector, Information SystemsCommented:
So who's closing this program down?  

Can you contact the vendor and ask them if there's some way to keep the program from being closed?
0
 
vagabond1214Author Commented:
we found a way around it.which is a script  runs behind the scene and checks the program if down opens it up within 2 seconds...................
if some body needs iit i can dispatch it here

thanks for your comments
0
 
Paul MacDonaldDirector, Information SystemsCommented:
What happens if someone kills the script?
0
 
vagabond1214Author Commented:
very rare chance of it..............................because task manager is disbaled  by us
0
 
vagabond1214Author Commented:
qwd
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now