Solved

Application restart every 5 minutes

Posted on 2010-08-20
3
423 Views
Last Modified: 2012-06-21
Hey I'm running windows server 2008 R2 and I have a .net program a server that I need to close and open every 5 minutes because of a bug that i am unable to fix because my Dev's are away at the moment so I need to somehow make the application restart it self every 5 minutes close and than open. like something that ends it than opens it.

I tryed to use microsoft's Task Scheduler but my Exe file has alot of .ini files and when it opens with task scheduler for some reason it can't find any of its ini files anymore like its running from another location or something.
0
Comment
Question by:yahshuah
[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
3 Comments
 
LVL 2

Accepted Solution

by:
aamsoh earned 500 total points
ID: 33490484
try to make this batch file and add it into your schedule

TASKKILL /F /IM YourApplication.exe
CD\YourApplicationFolder
YourApplication.exe

hope this will help
0
 
LVL 11

Expert Comment

by:mattibutt
ID: 33514175
Create schedule to launch and kill
0
 

Author Closing Comment

by:yahshuah
ID: 33657464
it works
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Introduction: Sometimes when I receive a call from my users to solve their problems it is very difficult for me to found their computer IP address. Even finding their computer Host to provide remote support can be a problem.  So I resorted to Goo…
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

732 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