Solved

Application restart every 5 minutes

Posted on 2010-08-20
3
419 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
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

This is a fairly complicated script that will install the required prerequisites to install SCCM 2012 R2 on a server.  It was designed under the functional model in order to compartmentalize each step required, reducing the overall complexity.  The …
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now