Solved

How To automate a application

Posted on 2011-09-28
14
203 Views
Last Modified: 2012-11-24
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
Comment
Question by:vagabond1214
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 7
14 Comments
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36719042
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
 

Author Comment

by:vagabond1214
ID: 36719078
but how would i make up a script which will keep on checking application not running and then will start the application ????


thanks
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36719099
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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:vagabond1214
ID: 36719659
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
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36719670
You can specify the scheduled task run only if it's not running already.
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36719678
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
 

Author Comment

by:vagabond1214
ID: 36943060
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
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36943166
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
 

Author Comment

by:vagabond1214
ID: 36952231
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
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36955480
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
 

Accepted Solution

by:
vagabond1214 earned 0 total points
ID: 36963725
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
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36963753
What happens if someone kills the script?
0
 

Author Comment

by:vagabond1214
ID: 36964039
very rare chance of it..............................because task manager is disbaled  by us
0
 

Author Closing Comment

by:vagabond1214
ID: 38628164
qwd
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question